-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 991 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
49
version: "3.8"
services:
nginx:
build:
context: .
dockerfile: docker/nginx/Dockerfile.dev
ports:
- "${NGINX_PORT:-80}:80"
tty: true
depends_on:
- web
web:
build:
context: .
dockerfile: docker/web/Dockerfile
tty: true
volumes:
- ./web:/web
command: "yarn run dev"
expose:
- 3000
stdin_open: true
restart: always
api:
build:
context: .
dockerfile: docker/api/Dockerfile.dev
volumes:
- ./api:/app
- ./docker/api/conf/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
expose:
- 9000
tty: true
restart: always
db:
build:
context: .
dockerfile: docker/db/Dockerfile
environment:
MYSQL_USERNAME: 'user'
MYSQL_PASSWORD: 'secret'
MYSQL_ROOT_PASSWORD: 'root'
ports:
- "${DB_PORT:-13306}:3306"
volumes:
- ./.data:/var/lib/mysql
- ./docker/db/init:/docker-entrypoint-initdb.d
volumes:
db: