-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
52 lines (45 loc) · 1021 Bytes
/
docker-compose.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
49
50
51
52
version: '3'
services:
frontend:
container_name: service_front_end
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "8000:8000"
networks:
- app-network
backend:
container_name: service_back_end
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8001:8001"
environment:
- POETRY_VIRTUALENVS_CREATE=false
networks:
- app-network
nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./certs:/etc/ssl
- ./logs:/var/log/nginx
- ./certs_webroot:/var/www/certbot
networks:
- app-network
depends_on:
- certbot
certbot:
image: certbot/certbot
volumes:
- ./certs:/etc/letsencrypt
- ./certs_webroot:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
networks:
app-network:
driver: bridge