-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 1013 Bytes
/
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
version: "3.3"
services:
web:
build:
context: ./
image: armasquads
container_name: armasquads_web
networks:
- armasquads
ports:
- "8080:80"
environment:
MYSQL_HOST: 'armasquads_mysql'
MYSQL_USER: 'armasquads'
MYSQL_PWD: 'armasquads'
MYSQL_DB: 'db'
ANALYTICS_ID: 'CHANGE_ME_PLS'
volumes:
- ./data_armasquads/init/.:/entrypoint.d:ro
- ./data_armasquads/bitools:/bitools:ro
- ./.git:/tmp/stats/.git:ro
- ./data_armasquads/uploads:/app/public/uploads
depends_on:
- db
db:
image: mariadb:10.4
container_name: armasquads_mysql
command: "--innodb_use_native_aio=0"
environment:
MYSQL_USER: 'armasquads'
MYSQL_PASSWORD: 'armasquads'
MYSQL_DATABASE: 'db'
MYSQL_ROOT_PASSWORD: 'CHANGE_ME_PLS'
networks:
- armasquads
ports:
- '127.0.0.1:3306:3306'
expose:
- '3306'
volumes:
- ./data_mysql:/var/lib/mysql
networks:
armasquads: