-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 968 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
46
47
48
49
version: '3.4'
services:
scat-pos:
build: .
links:
- db
- search
env_file:
- sample.env
working_dir: /app/app
command: [ php, "-S", "0.0.0.0:5080", "pos.php" ]
ports:
- 5080:5080
volumes:
# - .:/app
- ./config/php-fpm-extra.conf:/usr/local/etc/php-fpm.d/php-fpm-extra.conf
restart: always
db:
image: mysql:8.0.32
env_file:
- sample.env
# old password auth so sphinx can access it
command: [ mysqld, --local-infile=1, --default_authentication_plugin=mysql_native_password ]
expose:
- "3306"
volumes:
- ./db/init:/docker-entrypoint-initdb.d
- data:/var/lib/mysql
restart: always
search:
image: macbre/sphinxsearch:3.4.1
links:
- db
expose:
- "9306"
env_file:
- sample.env
volumes:
- ./config/search:/opt/sphinx/conf
- searchdata:/var/data
restart: always
volumes:
data:
searchdata: