This repository was archived by the owner on Aug 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (73 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
76 lines (73 loc) · 1.52 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
version: "3.9"
services:
database:
container_name: orecode-database
image: postgres
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 5s
retries: 10
start_period: 10s
ports:
- 5432:5432
volumes:
- orecode-db-dev-volume:/var/lib/postgresql/data
env_file:
- database.env
networks:
- dev
migration:
container_name: orecode-migration
build: ./backend
command: alembic upgrade head
env_file:
- backend.env
depends_on:
database:
condition: service_healthy
networks:
- dev
backend:
container_name: orecode-backend
build: ./backend
restart: always
ports:
- 8000:8000
env_file:
- backend.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/docs"]
interval: 30s
timeout: 5s
retries: 10
start_period: 10s
depends_on:
migration:
condition: service_completed_successfully
networks:
- dev
frontend-admin:
container_name: orecode-frontend-admin
build: ./frontend-admin
restart: always
ports:
- 5173:5173
env_file:
- frontend-admin.env
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5173/"]
interval: 30s
timeout: 5s
retries: 10
start_period: 10s
depends_on:
backend:
condition: service_healthy
networks:
- dev
networks:
dev:
volumes:
orecode-db-dev-volume: {}