-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 921 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 921 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:
php:
container_name: "reference-php"
env_file: .env
build: ./php
volumes:
- $PROJECT_DIR:/var/www:cached
nginx:
image: nginx
container_name: "reference-nginx"
env_file: .env
ports:
- $NGINX_HTTP_PORT:80
volumes:
- $PROJECT_DIR:/var/www:cached
- ./nginx:/etc/nginx/conf.d
depends_on:
- php
db:
image: mysql:8.0
container_name: "reference-db"
platform: linux/x86_64
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: database
MYSQL_USER: user
MYSQL_PASSWORD: docker
TZ: 'Asia/Tokyo'
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- ./db/data:/var/lib/mysql
- ./db/conf.d/my.cnf:/etc/mysql/conf.d/my.cnf
- ./db/sql:/docker-entrypoint-initdb.d
ports:
- 3306:3306
volumes:
config-volume: