-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.prod.yml
44 lines (43 loc) · 1.24 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
version: "3.9"
services:
nginx:
image: nginx:stable-alpine
restart: unless-stopped
ports:
- "80:80"
# - "443:443"
volumes:
- ./:/app
- ./client/build:/app/client/build
- ./server/public/sounds:/app/server/public/sounds
- ./client/build:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./certbot/conf:/etc/letsencrypt/:rw
- ./certbot/www:/var/www/certbot/:rw
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
image: certbot/certbot:latest
restart: unless-stopped
volumes:
- ./certbot/conf:/etc/letsencrypt/:rw
- ./certbot/www:/var/www/certbot/:rw
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
fast-meet:
expose:
- 9000
# deploy:
# replicas: 8
# restart_policy:
# condition: always
# update_config:
# parallelism: 2
# delay: 15s
image: silvareal/fast-meet
restart: unless-stopped
environment:
- NODE_ENV=production
env_file:
- client/.env
- server/.env
# command: npm run deploy
command: npm start --prefix server