-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.prod.yml
47 lines (45 loc) · 1.37 KB
/
docker-compose.prod.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
# docker-compose.yml
version: "3"
volumes:
chewiebot-db:
images:
certbot-var:
certbot-etc:
web-root:
services:
ui:
image: magentafall/chewiebot:client-latest
container_name: client
ports:
- 80:80
- 443:443
expose:
- 80
volumes:
- web-root:/var/www/html
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- ./dhparam:/etc/ssl/certs
command: ["nginx", "-g", "daemon off;"]
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- web-root:/var/www/html
depends_on:
- ui
networks:
- front
command: certonly --webroot --webroot-path=/var/www/html --email [email protected] --agree-tos --no-eff-email --force-renewal -d chewiemelodies.com -d www.chewiemelodies.com
backend:
image: magentafall/chewiebot:server-latest
container_name: server
volumes:
- chewiebot-db:/usr/src/chewiebot/server/dist/db
- images:/usr/src/chewiebot/server/dist/images
- certbot-etc:/etc/letsencrypt
environment:
NODE_ENV: production
command: ["pm2-runtime", "start.js"]