-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
144 lines (142 loc) · 4.3 KB
/
docker-compose.yml
File metadata and controls
144 lines (142 loc) · 4.3 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
services:
nginx:
image: nginx:1.20-alpine
depends_on:
- website
- chat
ports:
- "${PORT_WWW:-8080}:${PORT_WWW:-8080}" # www
- "${PORT_CDN:-8081}:${PORT_CDN:-8081}" # cdn
volumes:
- ./website/static:/www/www.destiny.gg/static
- ./website/public:/www/www.destiny.gg/public
- ./website/custom:/www/www.destiny.gg/custom
- ./docker/nginx-config/dgg.local.conf:/etc/nginx/conf.d/dgg.local.conf
- ./docker/nginx-config/domain.conf:/etc/nginx/domain.conf
- ./docker/nginx-config/dgg_csp.conf:/etc/nginx/dgg_csp.conf
- ./docker/nginx-certs:/etc/nginx/certs
profiles:
- dev
website:
build:
context: .
dockerfile: ./docker/Dockerfile-website
depends_on:
- redis
- mysql
volumes:
- ./website:/www/www.destiny.gg
- /www/www.destiny.gg/vendor/ # Exclude to avoid overwriting in container.
profiles:
- dev
cron:
build:
context: .
dockerfile: ./docker/Dockerfile-website
command: ["php", "-f", "./cron/index.php"]
depends_on:
- redis
- mysql
volumes:
- ./website:/www/www.destiny.gg
- /www/www.destiny.gg/vendor/
profiles:
- dev
chat:
build:
context: .
dockerfile: ./docker/Dockerfile-chat
volumes:
- ./chat/settings.cfg:/app/settings.cfg
- ./chat/state.dc:/app/state.dc
depends_on:
- redis
- mysql
extra_hosts:
- "host.docker.internal:host-gateway"
profiles:
- dev
redis:
image: redis:5.0.8-alpine
volumes:
- redis_data:/data
profiles:
- dev
mysql:
image: mariadb:10.11.6
volumes:
- mysql_data:/var/lib/mysql
- ./docker/mysql-config:/etc/mysql/mysql.conf.d
environment:
MYSQL_ROOT_PASSWORD: AslanIsEvil
MYSQL_DATABASE: destinygg
MYSQL_USER: destiny
MYSQL_PASSWORD: AslanIsEvil
profiles:
- dev
live-ws:
build:
context: .
dockerfile: ./docker/Dockerfile-live-ws
depends_on:
- redis
env_file: ./live-ws/.env
profiles:
- dev
wikistiny:
build:
context: .
dockerfile: ./docker/Dockerfile-wikistiny
depends_on:
- nginx
ports:
- "${PORT_WIKI:-8084}:80" # wiki
volumes:
- wiki_data:/var/www/data
- ./docker/wiki-config/LocalSettings.php:/var/www/html/LocalSettings.php:ro
- ./Wikistiny/extensions/Wikistiny/:/var/www/html/extensions/Wikistiny
environment:
WIKI_DB_NAME: "dgg_wiki"
WIKI_PASS: "jaydrschoice"
WIKI_NAME: "dggwiki"
WIKI_ADMIN: "Admin"
WIKI_SERVER_PORT: "${PORT_WIKI:-8084}"
extra_hosts:
- "host.docker.internal:host-gateway"
profiles:
- dev
website-test:
build:
context: .
dockerfile: ./docker/Dockerfile-website
depends_on:
- mysql-test
volumes:
- ./website/config:/www/www.destiny.gg/config/
- ./website/lib:/www/www.destiny.gg/lib/
- ./website/tests:/www/www.destiny.gg/tests/
- ./website/tmp:/www/www.destiny.gg/tmp/
- ./website/phpunit.xml:/www/www.destiny.gg/phpunit.xml
- ./website/migrations.php:/www/www.destiny.gg/migrations.php
command: ["vendor/bin/phpunit"]
profiles:
- test
mysql-test:
image: mariadb:10.11.6
volumes:
- mysql_test_data:/var/lib/mysql
- ./docker/mysql-config:/etc/mysql/mysql.conf.d
environment:
MYSQL_ROOT_PASSWORD: AslanIsEvil
MYSQL_DATABASE: destinygg
MYSQL_USER: destiny
MYSQL_PASSWORD: AslanIsEvil
logging:
driver: none
profiles:
- test
volumes:
mysql_data:
mysql_test_data:
redis_data:
wiki_data: