-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (56 loc) · 1.19 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
version: '3'
### Services ###
services:
nginx:
container_name: nginx
image: nginx
restart: always
command: ["nginx", "-g", "daemon off;"]
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ${CERT_PATH}:/etc/nginx/ssl/inception.crt
- ${CERT_KEY_PATH}:/etc/nginx/ssl/inception.key
- static_django_files:/static
- ./media:/media
ports:
- "8080:8080"
- "443:443"
frontend:
container_name: frontend
build:
context: .
dockerfile: frontend/Dockerfile
env_file:
- .env
restart: always
volumes:
- ./frontend/app:/code
backend:
container_name: backend
build:
context: .
dockerfile: backend/Dockerfile
env_file:
- .env
depends_on:
- db
restart: always
volumes:
- ./backend/files:/code
- static_django_files:/static
- ./media:/media
db:
container_name: db
image: postgres:15.5-bookworm
restart: unless-stopped
env_file:
- .env
volumes:
- postgres:/var/lib/postgresql/data
adminer:
container_name: adminer
image: adminer
restart: always
volumes:
postgres:
static_django_files: