-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (78 loc) · 1.74 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3.5'
networks:
default_net:
services:
db:
container_name: psqldb
image: postgres:9.6-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=test
- POSTGRES_USER=root
- POSTGRES_DB=benefits
- POSTGRES_HOST=psqldb
- PG_TRUST_LOCALNET=true
networks:
default_net:
auths_domain:
container_name: auths_domain
image: auths_domain:latest
restart: always
build:
context: ./auths_domain/
dockerfile: Dockerfile
args:
ENVIRON: prod
ports:
- "5000:5000"
volumes:
- ./auths_domain/:/app/
depends_on:
- db
command: gunicorn -c gunicorn_config wsgi --access-logfile -
environment:
- POSTGRES_PASSWORD=test
- POSTGRES_USER=root
- POSTGRES_DB=benefits
- POSTGRES_HOST=psqldb
- PG_TRUST_LOCALNET=true
- ENVIRON=prod
networks:
default_net:
front:
container_name: front
image: front:latest
restart: always
build:
context: ./front/
dockerfile: Dockerfile
args:
ENVIRON: prod
command: ["gunicorn", "wsgi:application", "-w", "2", "-b", "0.0.0.0:8000", "--capture-output", "--access-logfile", "-", "-t", "600"]
networks:
- default_net
environment:
- RUN_MODE=local
front_nginx:
container_name: front_nginx
image: front_nginx:latest
build:
context: ./front/
dockerfile: Dockerfile.nginx
networks:
default_net:
aliases:
- benefits.adamski.local
environment:
- WEB=front
- BASIC_AUTH=off
volumes:
- front-media-volume:/web/media/
ports:
- "13021:80"
depends_on:
- "front"
volumes:
front-media-volume:
external: true