-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 1021 Bytes
/
docker-compose.yml
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
---
version: "3.9"
services:
db:
image: postgres:12-alpine
volumes:
- ./dev/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- pg-data:/var/lib/postgresql/data
- ./dev/db/script:/script:ro
environment:
- POSTGRES_PASSWORD=password
ports:
- 5432:5432
pgadmin:
image: dpage/pgadmin4:5.7
environment:
- PGADMIN_LISTEN_PORT=5050
- PGADMIN_DEFAULT_PASSWORD=password
volumes:
- ./pgadmin4/servers.json:/pgadmin4/servers.json
- pg-admin-data:/var/lib/pgadmin
depends_on:
- db
ports:
- 5050:5050
backend:
image: python:3.8.5
working_dir: /app
command: ["./start.sh"]
volumes:
- ./dev/backend:/app:delegated
- ./src/AkvoResponseGrouper:/app/AkvoResponseGrouper:delegated
environment:
- DATABASE_URL=postgresql://akvo:password@db:5432/demo
depends_on:
- db
ports:
- 5000:5000
volumes:
pg-data:
pg-admin-data: