-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 890 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 890 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
44
45
---
# :cached is a MacOS only flag to avoid a docker bug causing CPU spikes
version: "2"
services:
mysql:
container_name: "mysql_1"
build:
context: mysql/
dockerfile: Dockerfile
env_file:
- mysql/env.dev
ports:
- "3306:3306"
tty: true
stdin_open: true
todo-api:
container_name: "todo-api_1"
build:
context: todoApp/api/
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./todoApp/api:/app:cached
command: "/app/bin/boot.sh"
tty: true
stdin_open: true
depends_on:
- mysql
todo-app:
container_name: "todo-app_1"
build:
context: todoApp/frontend/
dockerfile: Dockerfile
ports:
- "5000:5000"
volumes:
- ./todoApp/frontend:/app:cached
command: "/app/bin/boot.sh"
tty: true
stdin_open: true
depends_on:
- mysql