-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (35 loc) · 909 Bytes
/
docker-compose.yaml
File metadata and controls
36 lines (35 loc) · 909 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
services:
db:
image: postgres:14-alpine
command: ["postgres", "-c", "log_statement=all"]
ports:
- "127.0.0.1:7432:5432"
volumes:
- "./backend:/app"
environment:
- "POSTGRES_DB=launcherapi"
- "POSTGRES_USER=launcherapi"
- "POSTGRES_PASSWORD=launcherapi"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U launcherapi"]
interval: 5s
timeout: 5s
retries: 5
app:
build:
context: .
dockerfile: docker/dev/Dockerfile
args:
- "UID=${UID:-1000}"
- "GID=${GID:-1000}"
volumes:
- "./backend:/app"
- "./storage/backend:/storage"
command: [ "bash", "-c", "python manage.py runserver --nothreading 0.0.0.0:8000" ]
user: "${UID:-1000}:${GID:-1000}"
ports:
- "127.0.0.1:2459:8000"
- "127.0.0.1:5689:5678"
depends_on:
db:
condition: service_healthy