-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
63 lines (56 loc) · 1.43 KB
/
docker-compose.yaml
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
58
59
60
61
62
63
version: "3.8"
services:
db:
image: postgres:13-alpine
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 30s
timeout: 10s
retries: 5
ports:
- 5432:5432
networks:
- flask-network
environment:
POSTGRES_USER: guacatea
POSTGRES_PASSWORD: guacatea
POSTGRES_DB: market
volumes:
- postgres-db-volume:/var/lib/postgresql/data
app:
build: web
restart: always
ports:
- "${FLASK_RUN_PORT:-5000}:${FLASK_RUN_PORT:-5000}"
depends_on:
- db
- adminer
environment:
- FLASK_ENV=production #Set this with "production" for deploy
- FLASK_DEBUG=0 #Set this to 0 for production
- PYTHONUNBUFFERED=1
- FLASK_APP=run.py
networks:
- flask-network
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- flask-network
proxy:
image: nginx
restart: always
volumes:
- ./proxy/default.conf:/etc/nginx/conf.d/default.conf
- ./proxy/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
networks:
- flask-network
volumes:
postgres-db-volume:
networks:
flask-network: