-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (36 loc) · 988 Bytes
/
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
version: '3.2'
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"]
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;'"
relay-service:
build: .
ports:
- "1235:1235"
- "12345:12345"
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
environment:
- DEBUG=libp2p:*
- NODE_ENV=production