-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1.1 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
version: '3.2'
services:
nginx:
build: ./docker/files/nginx
container_name: common-nginx
volumes:
- ./app:/data/www:rw
- ./docker/files/nginx/conf.d:/etc/nginx/conf.d:ro
- ./docker/files/nginx/certs/:/etc/nginx/certs
- ./docker/files/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/logs/nginx:/var/log/nginx
ports:
- "80:80"
restart: always
command: nginx -g 'daemon off;'
mysql-db:
build: ./docker/files/mysql
container_name: common-mysql
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
volumes:
- ./docker/data/mysql:/var/lib/mysql:rw
- ./docker/logs/mysql:/var/lib/mysql-logs:rw
- ./docker/files/mysql/conf.d:/etc/mysql/conf.d:ro
environment:
MYSQL_ROOT_PASSWORD: HhwpKnf!YC4e
MYSQL_DATABASE: develop
MYSQL_USER: develop
MYSQL_PASSWORD: HhwpKnf!YC4e
restart: always
redis-db:
build: ./docker/files/redis
container_name: common-redis
ports:
- "6380:6379"
volumes:
- ./docker/data/redis:/data
restart: always