-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
69 lines (65 loc) · 1.55 KB
/
Copy pathcompose.yml
File metadata and controls
69 lines (65 loc) · 1.55 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
services:
db:
build:
context: .
dockerfile: ./docker/db.Dockerfile
container_name: triage-db
restart: always
environment:
POSTGRES_DB: triage_database
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${DB_PASSWORD}
APP_DB_PASSWORD: ${APP_DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
networks:
- triage-network
backend:
build:
dockerfile: ./docker/backend.Dockerfile
container_name: triage-backend
restart: always
environment:
DB_HOST: db
DB_PORT: 5432
DB_NAME: triage_database
DB_USER: triage_backend
DB_PASSWORD: ${APP_DB_PASSWORD}
ENVIRONMENT: ${ENVIRONMENT:-production}
volumes:
- source_code_data:/app/source
depends_on:
db:
condition: service_healthy
networks:
- triage-network
frontend:
build:
dockerfile: ./docker/frontend.Dockerfile
args:
VITE_API_BASE_URL: ${API_BASE_URL}
container_name: triage-frontend
restart: always
environment:
DOMAIN_NAME: ${DOMAIN_NAME:-localhost}
ports:
- "${HTTP_PORT:-80}:80"
- "${HTTPS_PORT:-443}:443"
volumes:
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro
#- ./certs:/etc/nginx/certs:ro
depends_on:
- backend
networks:
- triage-network
volumes:
postgres_data:
source_code_data:
networks:
triage-network:
driver: bridge