-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 1.04 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
version: '3'
services:
apache:
build: apache
container_name: ${PROJECT_NAME}-apache
ports:
- '80:80'
volumes:
- ./config/vhosts:/etc/apache2/sites-enabled
- ..:/app
depends_on:
- php
# mysql:
# image: mysql:8
# container_name: sf4_mysql
# volumes:
# - .docker/data/db:/var/lib/mysql
# command:
# - "--default-authentication-plugin=mysql_native_password"
# - "--lower_case_table_names=1"
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: sf4
# MYSQL_USER: sf4
# MYSQL_PASSWORD: sf4
php:
build: ./php
container_name: ${PROJECT_NAME}-php
volumes:
- ..:/app
- ./php/php.ini:/usr/local/etc/php/conf.d/custom.ini
# depends_on:
# - mysql
redis:
build: ./redis
container_name: ${PROJECT_NAME}-redis
image: 'redis:6.0.5'
ports:
- '6379:6379'