-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (62 loc) · 1.45 KB
/
docker-compose.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.9'
services:
database:
container_name: eln_db
# restart: unless-stopped
image: postgres:15.1
env_file: .backend.env
volumes:
- eln_db:/var/lib/postgresql/data/
ports:
- "${POSTGRES_PORT}:5432"
networks:
- eln
backend:
container_name: eln_backend
# restart: unless-stopped
build:
context: ./backend
dockerfile: Dockerfile
env_file: .backend.env
environment:
- POSTGRES_HOST=database
ports:
- "8000:8000"
depends_on:
- database
volumes:
- ./backend:/app
networks:
- eln
nginx:
container_name: nginx
image: nginx:1.23-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
# - ./certbot/conf:/etc/nginx/ssl
# - ./certbot/data:/usr/share/nginx/html/letsencrypt
depends_on:
- database
- backend
networks:
- eln
# certbot:
# container_name: certbot
# image: certbot/certbot:latest
# restart: unless-stopped
# # command: certonly --webroot --webroot-path=/usr/share/nginx/html/letsencrypt --email email@email.com --agree-tos --no-eff-email -d domain.com
# volumes:
# - ./certbot/conf:/etc/letsencrypt
# - ./certbot/data:/usr/share/nginx/html/letsencrypt
# - ./certbot/logs:/var/log/letsencrypt
# networks:
# - flask_eln
volumes:
eln_db:
networks:
eln:
name: flask_eln