-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (45 loc) · 997 Bytes
/
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
version: '3'
services:
mysql:
container_name: kl_mysql
image: mysql:8
volumes:
- ./db/data:/var/lib/mysql
ports:
- "${DOCKER_MYSQL_PORT}:3306"
env_file:
- ./.env
flyway:
container_name: kl_flyway
image: flyway/flyway
command: "-url=jdbc:mysql://mysql -schemas=knights_landing -user=${MYSQL_USER} -password=${MYSQL_PASSWORD} -connectRetries=60 migrate"
volumes:
- ./db/migrations:/flyway/sql
links:
- mysql
api:
container_name: kl_api
image: leocavalcante/dwoole:dev
ports:
- "${DOCKER_API_PORT}:8001"
volumes:
- ./:/app
env_file:
- ./.env
environment:
ENTRY_POINT_FILE: /app/api/index.php
links:
- mysql
web:
container_name: kl_web
image: leocavalcante/dwoole:dev
ports:
- "${DOCKER_WEB_PORT}:8000"
volumes:
- ./:/app
env_file:
- ./.env
environment:
ENTRY_POINT_FILE: /app/web/index.php
links:
- api