-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
59 lines (58 loc) · 1.19 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
version: '3.2'
services:
nginx:
container_name: "nginx"
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
ports:
- "80:80"
depends_on:
- php-fpm
volumes:
- ./public:/var/www/html/src/public
restart: always
php-fpm:
container_name: "php-fpm"
build:
context: .
dockerfile: ./docker/php-fpm/Dockerfile
depends_on:
- mysql
volumes:
- ./:/var/www/html/src/:delegated
restart: always
links:
- mysql
- redis
mysql:
container_name: "mysql"
image: mysql:5.7
environment:
MYSQL_DATABASE: default
MYSQL_USER: default
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
restart: always
volumes:
- ../db:/var/lib/mysql
- ../data/logs/mysql:/var/log/mysql
- ./docker/mysql/my.cnf:/etc/mysql/conf.d/my.cnf
redis:
container_name: "redis"
image: redis:5.0
ports:
- "6379:6379"
command: redis-server --appendonly yes
pma:
container_name: pma
image: phpmyadmin/phpmyadmin:latest
environment:
PMA_HOST: mysql
ports:
- "8080:80"
restart: always
links:
- mysql