-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (77 loc) · 1.85 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
70
71
72
73
74
75
76
77
78
79
80
81
services:
postgres:
container_name: cau_hackathon_postgres
hostname: postgres
image: postgres:latest
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=cau_hackathon
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready --username=admin --dbname=cau_hackathon"]
interval: 5s
timeout: 5s
retries: 5
restart: always
backend:
container_name: cau_hackathon_backend
hostname: backend
build:
context: backend-main
dockerfile: Dockerfile
command: gunicorn -c ./gunicorn_conf.py
volumes:
- ./backend-main/logs:/home/app/logs
- ./backend-main/staticfiles:/home/app/staticfiles
- ./backend-main/media:/home/app/media/
- ./backend-main/locales:/home/app/locales
environment:
- LOGGER_BOT_TOKEN=7103058255:AAEgd6zSw9PAvwneoCJ3OD0K2jEO4FUSnAo
- LOGGER_CHAT_ID=-1002190718985
- DEBUG=False
- DB_NAME=cau_hackathon
- DB_USER=admin
- DB_PASSWORD=admin
- DB_HOST=postgres
- DB_PORT=5432
security_opt:
- seccomp:unconfined
ports:
- 8080:8000
depends_on:
- postgres
restart: always
frontend:
container_name: cau_hackathon_frontend
hostname: frontend
build:
context: frontend
dockerfile: Dockerfile
environment:
- NODE_ENV=production
ports:
- 3030:3000
depends_on:
- postgres
- backend
restart: always
frontend2:
container_name: cau_hackathon_frontend_new
hostname: frontend-new
build:
context: frontend-new
dockerfile: Dockerfile
environment:
- NODE_ENV=production
ports:
- 3031:3000
depends_on:
- postgres
- backend
restart: always
volumes:
postgres_data: