File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ services :
2+ nginx-proxy :
3+ image : nginx:alpine
4+ restart : always
5+ ports :
6+ - " 80:80"
7+ - " 443:443"
8+ volumes :
9+ - ./services/nginx/conf.d/prod_nginx.conf:/etc/nginx/conf.d/default.conf
10+ - ./data/certbot/conf:/etc/letsencrypt
11+ - ./data/certbot/www:/var/www/certbot
12+ - ./apps/frontend/dist:/usr/share/nginx/html:ro
13+ networks :
14+ - frontend
15+
16+ certbot :
17+ image : certbot/certbot
18+ volumes :
19+ - ./data/certbot/conf:/etc/letsencrypt
20+ - ./data/certbot/www:/var/www/certbot
21+ entrypoint : " /bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
22+
23+ backend :
24+ build :
25+ context : .
26+ dockerfile : ./services/backend/Dockerfile.prod
27+ image : backend:latest
28+ env_file :
29+ - .env.prod
30+ volumes :
31+ - .env.prod:/app/.env
32+ expose :
33+ - " 3000"
34+ - " 1234"
35+ networks :
36+ - frontend
37+ - backend
38+
39+ redis :
40+ image : redis:latest
41+ environment :
42+ REDIS_HOST : ${REDIS_HOST}
43+ REDIS_PORT : ${REDIS_PORT}
44+ networks :
45+ - backend
46+
47+ networks :
48+ frontend :
49+ driver : bridge
50+ backend :
51+ driver : bridge
52+
53+ volumes :
54+ nginx_certs :
You can’t perform that action at this time.
0 commit comments