-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1.34 KB
/
docker-compose.yml
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
services:
nginx:
image: nginx:1.22.0
depends_on:
- relay-service
environment:
- SERVER_NAME=${SERVER_NAME}
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf.template:/etc/nginx/nginx.conf.template
- ./nginx/docker-entrypoint.d/:/docker-entrypoint.d/
- ./data/nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/docker-entrypoint.sh"
command: ["nginx"]
networks:
- local-first-network
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
networks:
- local-first-network
relay-service:
build: .
ports:
- "3000:3000"
- "1235:1235"
- "12345:12345"
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
environment:
- DEBUG=libp2p:*
- NODE_ENV=production
#command: ["node", "relay/src/start-relay.js", "--disable-scanning"]
# command: ["node", "relay/src/start-relay.js"]
command: ["node", "--max-old-space-size=8192", "relay/src/start-relay.js"]
networks:
- local-first-network
networks:
local-first-network:
external: true