-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (43 loc) · 965 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.0"
services:
db:
image: mysql
container_name: "fyp_db"
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- "./db/init/:/docker-entrypoint-initdb.d/"
- "dbdata:/var/lib/mysql/"
environment:
MYSQL_ROOT_PASSWORD: test
api:
container_name: "fyp_api"
build:
context: ./api
dockerfile: Dockerfile
ports:
- "8080:8080"
volumes:
- "./api/app/:/app/"
- "images:/app/assets/images"
- "instances:/instances"
depends_on:
- training_instance
- db
training_instance:
container_name: "fyp_training_instance"
build:
context: ./trainingInstance
dockerfile: Dockerfile
volumes:
- "./trainingInstance/app/:/app"
- "instances:/app/instances"
- "images:/assets/images/"
ports:
- "80:80"
depends_on:
- db
volumes:
images:
instances:
dbdata: