-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (52 loc) · 1.06 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3.7'
services:
app:
image: covid-backend:latest
build: .
entrypoint:
- flask
- run
- --host=0.0.0.0
environment:
FLASK_APP: application
FLASK_ENV: development
SQLALCHEMY_DATABASE_URI: "postgres://covid:covid@postgres:5432/covid"
BASIC_AUTH_USERNAME: covid
BASIC_AUTH_PASSWORD: covid
ports:
- "5000:5000"
volumes:
- ${PWD}:/app
networks:
- postgres
postgres:
image: postgres:10.7
environment:
POSTGRES_USER: covid
POSTGRES_PASSWORD: covid
POSTGRES_DB: covid
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
networks:
- postgres
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_PASSWORD: covid
PGADMIN_DEFAULT_EMAIL: covid
volumes:
- pgadmin:/root/.pgadmin
ports:
- "5433:80"
networks:
- postgres
restart: unless-stopped
networks:
postgres:
volumes:
postgres:
pgadmin: