-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose-dev.yaml
More file actions
60 lines (43 loc) · 907 Bytes
/
Copy pathdocker-compose-dev.yaml
File metadata and controls
60 lines (43 loc) · 907 Bytes
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
services:
api:
build:
context: ./backend
dockerfile: Dockerfile
container_name: olcwave-api
restart: always
env_file:
- ./backend/.env
environment:
DOCKER_HOST: unix:///var/run/docker.sock
ports:
- "8000:8000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- app
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
container_name: olcwave-postgres
restart: unless-stopped
env_file:
- ./backend/.env
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- app
healthcheck:
test:
- CMD-SHELL
- pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB"
interval: 5s
timeout: 5s
retries: 10
networks:
app:
volumes:
postgres_data: