-
-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
38 lines (35 loc) · 833 Bytes
/
docker-compose.yaml
File metadata and controls
38 lines (35 loc) · 833 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
version: '3.1'
services:
postgres:
container_name: postgres
image: postgres:latest
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=total
- POSTGRES_PASSWORD=platform
- POSTGRES_DB=openplatform
healthcheck:
test: ["CMD", "pg_isready", "-U", "total", "-d", "openplatform"]
interval: 3s
timeout: 3s
retries: 5
openplatform:
container_name: openplatform
image: totalplatform/openplatform:latest
ports:
- 8000:8000
volumes:
- openplatform:/www/databases/
environment:
- DATABASE=postgresql://total:platform@postgres:5432/openplatform
depends_on:
postgres:
condition: service_healthy
volumes:
pgdata:
driver: local
openplatform:
driver: local