-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 816 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 816 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
43
x-db-env: &db-env
MYSQL_HOST: ${MYSQL_HOST}
MYSQL_PORT: ${MYSQL_PORT}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
services:
fpm:
build:
context: ./docker/php-fpm
dockerfile: Dockerfile
depends_on:
- db
environment:
<<: *db-env
volumes:
- './app:/var/www/html/public'
nginx:
image: nginx:latest
ports:
- 80:80
volumes:
- './docker/nginx/conf.d:/etc/nginx/conf.d'
db:
image: mysql:8
container_name: db
ports:
- 3306:3306
volumes:
- test_db:/var/lib/mysql
- './dummy_data.sql:/var/dummy_data.sql'
environment:
<<: *db-env
volumes:
test_db:
driver: local
esdata1:
driver: local