-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
35 lines (33 loc) · 852 Bytes
/
Copy pathcompose.yml
File metadata and controls
35 lines (33 loc) · 852 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
services:
app:
container_name: app
build: ./docker/php
volumes:
- ./project:/var/www/html
nginx:
image: nginx
container_name: nginx
ports:
- 8000:80
volumes:
- ./project/:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
working_dir: /var/www/html
depends_on:
- app
db:
image: mysql:5.7
container_name: db
environment:
MYSQL_ROOT_PASSWORD: testroot
MYSQL_DATABASE: db_local
MYSQL_USER: db_user
MYSQL_PASSWORD: userpass
TZ: 'Asia/Tokyo'
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- ./docker/db/data:/var/lib/mysql
- ./docker/db/my.cnf:/etc/mysql/conf.d/my.cnf
- ./docker/db/sql:/docker-entrypoint-initdb.d
ports:
- 3306:3306