-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 922 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 922 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
services:
db:
image: postgis/postgis:16-3.4
volumes:
- pgdata:/var/lib/postgresql/data
- ./migrations:/docker-entrypoint-initdb.d
- ./docker/pg_hba.conf:/etc/postgresql/pg_hba.conf
command: postgres -c hba_file=/etc/postgresql/pg_hba.conf
environment:
POSTGRES_DB: wildscan
POSTGRES_USER: wildscan
POSTGRES_PASSWORD: wildscan
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5555:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wildscan"]
interval: 5s
timeout: 5s
retries: 5
backend:
build: .
depends_on:
db:
condition: service_healthy
env_file: .env
ports:
- "8000:8000"
volumes:
- ./backend:/app/backend
- ./backend/static/images:/app/static/images
frontend:
build: ./frontend
depends_on:
- backend
ports:
- "3000:3000"
volumes:
pgdata: