-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.68 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
services:
nginx:
image: "nginx:alpine"
restart: always
volumes:
- "./public:/wsc"
- "./docker/nginx/realip.conf:/etc/nginx/conf.d/realip.conf"
- "./docker/nginx/site.conf:/etc/nginx/conf.d/default.conf"
ports:
- "${FPM_PORT:-80}:80"
networks:
- wsc-network
php-fpm:
build:
context: docker/php-fpm
args:
PHP_VERSION: "${PHP_VERSION:-8.3}"
environment:
WSC_VERSION: "${WSC_VERSION:-6.1}"
MYSQL_DATABASE: "${MYSQL_DATABASE:-woltlab_suite}"
MYSQL_USER: "${MYSQL_USER:-woltlab_suite}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD:-woltlab_suite}"
restart: always
volumes:
- "./public:/wsc"
- "./devtools:/devtools"
- "./docker/php-fpm/php-overrides.ini:/usr/local/etc/php/conf.d/php-overrides.ini"
- "./docker/php-fpm/WCFSetupTemplate.conf:/usr/local/etc/php-fpm.d/WCFSetupTemplate.conf"
networks:
- wsc-network
mysql:
image: "mariadb:lts"
restart: always
volumes:
- "./docker/mysql/conf/my.cnf:/etc/mysql/my.cnf:ro"
- "mysqldata:/var/lib/mysql"
environment:
MYSQL_ROOT_HOST: 172.*.*.*
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: "${MYSQL_DATABASE:-woltlab_suite}"
MYSQL_USER: "${MYSQL_USER:-woltlab_suite}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD:-woltlab_suite}"
ports:
- "${MYSQL_PORT:-3306}:3306"
networks:
- wsc-network
redis:
image: docker.dragonflydb.io/dragonflydb/dragonfly:ubuntu
restart: always
ulimits:
memlock: -1
volumes:
- "dragonflydata:/data"
networks:
- wsc-network
networks:
wsc-network:
driver: bridge
volumes:
mysqldata:
dragonflydata: