-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
executable file
·71 lines (71 loc) · 1.58 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.7'
services:
site:
working_dir: ${WORKING_DIR}
build:
context: docker/nginx
dockerfile: Dockerfile
args:
- NGINX_TEMPLATE=${NGINX_TEMPLATE}
- NGINX_SERVER_NAME=${NGINX_SERVER_NAME}
- NGINX_ROOT=${NGINX_ROOT}
volumes:
- "./:${WORKING_DIR}"
networks:
- local
env_file:
- .env
depends_on:
- php
php:
working_dir: ${WORKING_DIR}
build:
context: docker/php
dockerfile: Dockerfile
env_file:
- .env
volumes:
- "./:${WORKING_DIR}"
- "/tmp:/tmp"
networks:
- local
postgres:
image: postgres:9.6
env_file:
- .env
volumes:
- ./docker/postgres/data:/var/lib/postgresql/data
- "/tmp:/tmp"
networks:
- local
depends_on:
- php
adminer:
image: adminer
env_file:
- .env
networks:
- local
ports:
- 8080:8080
sphinxsearch:
working_dir: ${WORKING_DIR}
build:
context: docker/sphinxsearch
dockerfile: Dockerfile
args:
sphinx_config_folder: ${SPHINX_CONFIG_FOLDER}
sphinx_data_folder: ${SPHINX_DATA_FOLDER}
postgres_host: ${POSTGRES_HOST}
postgres_user: ${POSTGRES_USER}
postgres_password: ${POSTGRES_PASSWORD}
postgres_db: ${POSTGRES_DB}
depends_on:
- php
- postgres
networks:
- local
ports:
- 9312:9312
networks:
local: