-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.prod.example.yml
107 lines (105 loc) · 2.25 KB
/
docker-compose.prod.example.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: "3.7"
x-web: &web
image: trojsten/web:latest
build:
context: .
dockerfile: ./docker/prod/Dockerfile
env_file:
- example.env
- production.env
services:
db:
image: postgres:12-alpine
volumes:
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=trojsten
- POSTGRES_DB=trojsten
static:
<<: *web
ports:
- "8000:80"
command: "nginx -g 'pid /tmp/nginx.pid; daemon off;'"
login:
<<: *web
ports:
- "8010:80"
depends_on:
- db
environment:
- DJANGO_SETTINGS_MODULE=trojsten.settings.login
- TROJSTENWEB_ALLOWED_HOSTS=login;localhost;127.0.0.1;
ksp:
<<: *web
ports:
- "8001:80"
environment:
- DJANGO_SETTINGS_MODULE=trojsten.settings.ksp
- TROJSTENWEB_ALLOWED_HOSTS=localhost;127.0.0.1;
depends_on:
- db
prask:
<<: *web
ports:
- "8002:80"
environment:
- DJANGO_SETTINGS_MODULE=trojsten.settings.prask
- TROJSTENWEB_ALLOWED_HOSTS=localhost;127.0.0.1;
depends_on:
- db
fks:
<<: *web
ports:
- "8003:80"
environment:
- DJANGO_SETTINGS_MODULE=trojsten.settings.fks
- TROJSTENWEB_ALLOWED_HOSTS=localhost;127.0.0.1;
depends_on:
- db
kms:
<<: *web
ports:
- "8004:80"
environment:
- DJANGO_SETTINGS_MODULE=trojsten.settings.kms
- TROJSTENWEB_ALLOWED_HOSTS=localhost;127.0.0.1;
depends_on:
- db
wiki:
<<: *web
ports:
- "8006:80"
environment:
- DJANGO_SETTINGS_MODULE=trojsten.settings.wiki
- TROJSTENWEB_ALLOWED_HOSTS=localhost;127.0.0.1;
depends_on:
- db
ufo:
<<: *web
ports:
- "8007:80"
environment:
- DJANGO_SETTINGS_MODULE=trojsten.settings.ufo
- TROJSTENWEB_ALLOWED_HOSTS=localhost;127.0.0.1;
depends_on:
- db
fx:
<<: *web
ports:
- "8008:80"
environment:
- DJANGO_SETTINGS_MODULE=trojsten.settings.fx
- TROJSTENWEB_ALLOWED_HOSTS=localhost;127.0.0.1;
depends_on:
- db
susi:
<<: *web
ports:
- "8011:80"
environment:
- DJANGO_SETTINGS_MODULE=trojsten.settings.susi
- TROJSTENWEB_ALLOWED_HOSTS=localhost;127.0.0.1;
depends_on:
- db
volumes:
db_data: