-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.16 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
services:
postgis:
image: postgis/postgis:16-3.4
container_name: utd-postgis
environment:
POSTGRES_USER: utd
POSTGRES_PASSWORD: utdpass
POSTGRES_DB: utd_data
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./init-chat-schema.sql:/docker-entrypoint-initdb.d/10-chat-schema.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U utd -d utd_data"]
interval: 5s
timeout: 3s
retries: 10
backend:
build:
context: ../backend
dockerfile: ../meta/backend.Dockerfile
container_name: utd-backend
depends_on:
postgis:
condition: service_healthy
env_file: .env
ports:
- "8000:8000"
volumes:
- ${HOST_DATA_EXAMPLE_DIR:-../florence-hurricane-complete/data-example}:/app/data-example:ro
- ./.env:/app/.env:ro
- ./.env.prod:/app/.env.prod:ro
frontend:
build:
context: ../frontend
dockerfile: ../meta/frontend.Dockerfile
container_name: utd-frontend
depends_on:
- backend
environment:
VITE_API_BASE_URL: "http://localhost:8000"
ports:
- "5173:5173"
volumes:
pgdata: