-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (55 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
60 lines (55 loc) · 1.33 KB
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
60
version: "3.7"
services:
web:
container_name: web
image: nginx:1.21-alpine
ports:
- "80:80"
volumes:
- ./backend:/var/www/app:cached
- ./infrastructure/nginx/default.conf:/etc/nginx/conf.d/default.conf:cached
links:
- app
depends_on:
- app
networks:
internal-network:
app:
container_name: app
build:
context: ./infrastructure/php
dockerfile: Dockerfile
volumes:
- ./backend:/var/www/app:cached
- ./infrastructure/php/dev/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini:cached
working_dir: /var/www/app
networks:
internal-network:
db:
image: mysql:5.7
container_name: db
environment:
TZ: Asia/Tokyo
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: storage
volumes:
- ./infrastructure/mysql/my.cnf:/etc/mysql/conf.d/mysql.cnf:ro
- ./infrastructure/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
- storage-data:/var/lib/mysql:cache
stop_grace_period: 1m
networks:
internal-network:
composer:
container_name: composer
build:
context: ./infrastructure/composer
dockerfile: Dockerfile
volumes:
- ./backend:/backend
working_dir: /backend
networks:
internal-network:
driver: bridge
volumes:
storage-data:
driver: local