-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (39 loc) · 930 Bytes
/
docker-compose.yaml
File metadata and controls
42 lines (39 loc) · 930 Bytes
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:
nginx:
image: nginx:1.14.2
restart: always
volumes:
- ./code:/code
- ./nginx/conf:/etc/nginx
- ./nginx/log:/var/log/nginx
ports:
- 80:80
- 443:443
php:
image: lockdown56/php:7.3.4-fpm-1
restart: always
volumes:
- ./code:/code
mysql:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: root_password
MYSQL_USER: test
MYSQL_PASSWORD: test
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/conf:/etc/mysql/conf.d
- ./mysql/init:/docker-entrypoint-initdb.d
ports:
- 3306:3306
redis:
image: redis:5.0.3
restart: always
volumes:
- ./redis/conf/redis.conf:/usr/local/etc/redis/redis.conf
ports:
- 6379:6379
command: redis-server /usr/local/etc/redis/redis.conf