-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
48 lines (47 loc) · 990 Bytes
/
docker-compose.prod.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
# Production-specific config
services:
client:
build:
context: client/
target: prod
depends_on:
- dopami
volumes:
- static:/app/dist
dopami:
build:
target: prod
restart: unless-stopped
nginx:
build:
context: nginx/
restart: unless-stopped
env_file:
- .env
depends_on:
- client
- dopami
networks:
- main
ports:
- 80:80
- 443:443
volumes:
- static:/static:ro
- acmechallenge:/var/www/certbot:ro
- letsencrypt:/etc/letsencrypt:ro
certbot:
image: certbot/certbot
volumes:
- acmechallenge:/var/www/certbot
- letsencrypt:/etc/letsencrypt
# command: certonly --register-unsafely-without-email --agree-tos --webroot -w /var/www/certbot/ -d dopami.me
# command: certonly -d dopami.me --dry-run
command: renew
volumes:
static:
external: false
acmechallenge:
external: false
letsencrypt:
external: false