-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.15 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
42
43
44
45
46
47
48
49
50
version: "3.6"
services:
mysql:
image: mysql:8.0
restart: on-failure
environment:
MYSQL_ROOT_PASSWORD: saloon
MYSQL_DATABASE: saloon
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
php:
build:
context: .
dockerfile: .docker/php/Dockerfile
restart: on-failure
ports:
- 10080:8080
depends_on:
- mysql
volumes:
- ./:/usr/src/app
working_dir: /usr/src/app
encore:
image: node:10-alpine
volumes:
- .:/app
ports:
- "${DEV_SERVER_PORT:-8080}:8080"
working_dir: /app
command: ["yarn", "dev-server", "--host=0.0.0.0"]
nginx:
image: nginx:1.15.3
restart: on-failure
volumes:
- .:/usr/src/app
- ./.docker/nginx:/etc/nginx/conf.d
ports:
- 18080:80
depends_on:
- php
adminer:
image: adminer
restart: on-failure
ports:
- 10088:8080