-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.base.yml
71 lines (64 loc) · 1.4 KB
/
docker-compose.prod.base.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3'
services:
traefik:
image: traefik:v2.5
restart: unless-stopped
command:
- "--providers.docker"
- "--providers.docker.exposedbydefault=false"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- traefik_network
db:
image: postgres:13.1-alpine
restart: unless-stopped
healthcheck:
test: [ "CMD", "pg_isready", "-U", "${DB_USERNAME}", "-d", "${DB_NAME}" ]
interval: 15s
timeout: 3s
retries: 8
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
networks:
- internal_network
voy:
image: project-p/voy
build:
context: .
restart: unless-stopped
environment:
- DB_HOST
- DB_PORT
- DB_NAME
- DB_USERNAME
- DB_PASSWORD
# - MAIL_HOST
# - MAIL_PORT
# - MAIL_USE_TLS
# - MAIL_USE_SSL
# - MAIL_DEBUG
# - MAIL_USERNAME
# - MAIL_PASSWORD
- SECRET_KEY
- FLASK_APP
- FLASK_ENV
- DEBUG
- TESTING
networks:
- internal_network
- traefik_network
depends_on:
- db
- traefik
volumes:
db:
networks:
traefik_network:
# Need to explicitly set the name, so that docker-compose does not prefix it.
name: traefik_network
internal_network: