-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (46 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
54 lines (46 loc) · 1.26 KB
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
version: '3'
services:
web:
build: ./web
restart: always
environment:
- APACHE_RUN_USER=#1000
- PHP_INI_SCAN_DIR=/usr/local/etc/php/conf.d/:/usr/local/etc/php/custom.d/
volumes:
- ${APP_PATH_HOST}:${APP_PATH_CONTAINER}
- ./web/php-ini/:/usr/local/etc/php/custom.d/
ports:
- ${APP_HOST_PORT}:80
working_dir: ${APP_PATH_CONTAINER}
# networks:
# - docker_network
db:
image: mysql:5.7.26
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASS}
volumes:
- ${DB_PATH_HOST}:/var/lib/mysql
ports:
- ${DB_HOST_PORT}:3306
# networks:
# - docker_network
adminer:
image: adminer
restart: always
ports:
- ${ADMINER_HOST_PORT}:8080
composer:
image: composer:1.6
volumes:
- ${APP_PATH_HOST}:${APP_PATH_CONTAINER}
working_dir: ${APP_PATH_CONTAINER}
command: composer install
#networks:
# default:
# external:
# name: docker_network
#networks:
# docker_network:
# driver: custom-driver-1