-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
58 lines (54 loc) · 1.34 KB
/
compose.yml
File metadata and controls
58 lines (54 loc) · 1.34 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
services:
db:
image: postgres:15
environment:
POSTGRES_DB: ngtrydb
POSTGRES_USER: ngtry
POSTGRES_PASSWORD: ngtry
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ngtry -d ngtrydb"]
interval: 5s
timeout: 5s
retries: 5
nginx:
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./backend/api_service/static:/app/backend/api_service/staticfiles
- ./backend/api_service/media:/app/backend/api_service/media
frontend-organization-site:
build:
context: .
dockerfile: ./docker/frontend/prod/organization-site/Dockerfile
ports:
- "3002:3000"
env_file:
- ./frontend/organization-site/.env.local
volumes:
- ./frontend/organization-site:/app/frontend/organization-site
backend-api-service:
build:
context: .
dockerfile: ./docker/backend/prod/api-service/Dockerfile
ports:
- "8002:8000"
env_file:
- ./backend/api_service/.env
volumes:
- ./backend/api_service:/app/backend/api_service
depends_on:
db:
condition: service_healthy
volumes:
postgres_data:
backups:
static:
media: