-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
97 lines (88 loc) · 2.24 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- 443:443
- 80:80
container_name: nginx-proxy
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- nginx-certs:/etc/nginx/certs
- nginx-vhost:/etc/nginx/vhost.d
- nginx-html:/usr/share/nginx/html
nginx-proxy-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
environment:
NGINX_PROXY_CONTAINER: "nginx-proxy"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- nginx-certs:/etc/nginx/certs
- nginx-vhost:/etc/nginx/vhost.d
- nginx-html:/usr/share/nginx/html
bootstrap:
build:
context: ./bootstrap
dockerfile: Dockerfile
restart: unless-stopped
volumes:
- ipfs_path:/data/ipfs
- ipfs_fuse:/ipfs
- ipns_fuse:/ipns
environment:
- IPFS_PATH=/data/ipfs
ports:
# Swarm listens on all interfaces, so is remotely reachable.
- 4001:4001/tcp
- 4001:4001/udp
# The following ports only listen on the loopback interface, so are not remotely reachable by default.
# If you want to override these or add more ports, see https://docs.docker.com/compose/extends/ .
# API port, which includes admin operations, so you probably don't want this remotely accessible.
- 127.0.0.1:5001:5001
# HTTP Gateway
- 127.0.0.1:8080:8080
web-user:
build:
context: ./web
dockerfile: ./Dockerfile
env_file:
- .env
command: npm run dev
volumes:
- ./web/:/app:rw
- /app/node_modules
- nginx-certs:/app/certs
ports:
- "5173:5173"
environment:
- PORT=5173
- VITE_DOMAIN=${DOMAIN}
depends_on:
- nginx-proxy
- nginx-proxy-letsencrypt
web-user-2:
build:
context: ./web
dockerfile: ./Dockerfile
env_file:
- .env
command: npm run dev
volumes:
- ./web/:/app:rw
- /app/node_modules
- nginx-certs:/app/certs
ports:
- "5174:5174"
environment:
- PORT=5174
- VITE_DOMAIN=${DOMAIN}
depends_on:
- nginx-proxy
- nginx-proxy-letsencrypt
volumes:
ipfs_path:
ipfs_fuse:
ipns_fuse:
nginx-certs:
nginx-vhost:
nginx-html:
ignore: