forked from OPSnet/Gazelle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 1.8 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
version: '3'
services:
web:
build: .
ports:
- 127.0.0.1:7001:80
depends_on:
- memcached
- mysql
- pg
volumes:
- .:/var/www
- .docker/web/nginx.conf:/etc/nginx/sites-available/gazelle.conf
environment:
- ENV=dev
# These should match what you set for your mysql container below
- MYSQL_USER=gazelle
- MYSQL_PASSWORD=password
memcached:
image: memcached:1.6.20-alpine
pg:
image: postgres:14-bullseye
ports:
- 127.0.0.1:54321:5432
volumes:
- pg-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=nyala
- POSTGRES_PASSWORD=nyalapw
- POSTGRES_DB=gz
mysql:
image: percona:ps-8.0
ports:
- 127.0.0.1:36000:3306
volumes:
- mysql-data:/var/lib/mysql
environment:
- MYSQL_DATABASE=gazelle
- MYSQL_USER=gazelle
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=sc5tlc9JSCC6
command:
- mysqld
- --group-concat-max-len=1048576
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_0900_ai_ci
- --userstat=on
- --sql-mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
# neither sphinxsearch or ocelot are compatible with the mysql8 caching_sha2_password plugin
- --default-authentication-plugin=mysql_native_password
sphinxsearch:
build: ./.docker/sphinxsearch
depends_on:
- mysql
- web
volumes:
- sphinx-data:/var/lib/sphinxsearch/data/
- ./.docker/sphinxsearch/sphinx.conf:/var/lib/sphinxsearch/conf/sphinx.conf
environment:
# These should match what you set for your mysql container above
- MYSQL_USER=gazelle
- MYSQL_PASSWORD=password
volumes:
mysql-data:
pg-data:
sphinx-data: