-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1.33 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
version: "3.9"
services:
postgres:
image: postgis/postgis:16-3.4-alpine
restart: always
environment:
PGDATA: /data/
env_file:
- deployment/database.dev.env
volumes:
- ./api/database:/data
- ./deployment/10_postgis.sh:/docker-entrypoint-initdb.d/10_postgis.sh
healthcheck:
test: ["CMD-SHELL", "pg_isready -U admin -d planer_podrozy"]
interval: 5s
timeout: 5s
retries: 15
api:
build:
context: ./
dockerfile: ./deployment/Dockerfile.backend
env_file:
- deployment/database.dev.env
- deployment/backend.dev.env
ports:
- "8000:8000"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
volumes:
- ./api/src:/api/src
- ./api/migrations:/api/migrations
- ./api/alembic.ini:/api/alembic.ini
ui:
build:
context: ./
dockerfile: ./deployment/Dockerfile.frontend
env_file:
- deployment/frontend.dev.env
ports:
- "8080:8080"
depends_on:
- api
restart: unless-stopped
volumes:
- ./ui/src:/ui/src
- ./ui/index.html:/ui/index.html