forked from diogohudson/devpalace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 828 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (36 loc) · 828 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
version: "3"
volumes:
dev_palace_db_data:
services:
api:
container_name: dev-palace
build:
context: .
dockerfile: Dockerfile
user: root
ports:
- "8081:8081"
command: >
sh -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8081"
volumes:
- ./devpalace:/devpalace
environment:
- ENV=local
restart: on-failure
db:
container_name: db
image: postgis/postgis:15-3.3
environment:
- POSTGRES_DB=app
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=supersecretpassword
ports:
- "6662:5432"
volumes:
- dev_palace_db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 10s
retries: 10
start_period: 30s