-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (91 loc) · 2 KB
/
Copy pathdocker-compose.yml
File metadata and controls
98 lines (91 loc) · 2 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
services:
database:
container_name: eln_db
# restart: unless-stopped
image: postgres:15.1
env_file: .env
environment:
- POSTGRES_HOST=localhost
- POSTGRES_PORT=5432
volumes:
- eln_db:/var/lib/postgresql/data/
ports:
- "5432:5432"
networks:
- eln
frontend:
container_name: eln_frontend
# restart: unless-stopped
build:
context: ./frontend
dockerfile: Dockerfile
# ports:
# - "3000:3000"
# depends_on:
# - backend
volumes:
- build:/app/dist
# - ./frontend:/app
# stdin_open: true
# tty: true
# networks:
# - eln
backend:
container_name: eln_backend
# restart: unless-stopped
build:
context: ./backend
dockerfile: Dockerfile
env_file: .env
environment:
- POSTGRES_HOST=database
- POSTGRES_PORT=5432
ports:
- "8000:8000"
depends_on:
- database
volumes:
- ./backend:/app
- static:/app/static
- media:/app/media
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
- build:/var/www/frontend
- static:/static
- media:/media
depends_on:
- database
- backend
- frontend
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:
build:
static:
media:
networks:
eln:
name: flask_eln