forked from gooormmoon/algorithm-fighter-back
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 894 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
version: "3.8"
services:
algofi-mysql:
build: ./algofi-mysql
image: algofi-mysql:5.0.0-compose
ports:
- 3306:3306
volumes:
- mydata:/var/lib/mysql
- ./algofi-mysql/init:/docker-entrypoint-initdb.d
deploy:
resources:
limits:
cpus: "1"
memory: 256M
restart: always
algofi-core:
build: ./algofi-core
image: algofi-core:5.0.0-compose
ports:
- 8080:8080
environment:
- DB_URL=algofi-mysql
depends_on:
- algofi-mysql
deploy:
resources:
limits:
cpus: "1.5"
memory: 512M
restart: on-failure
algofi-compile:
build: ./algofi-compile
image: algofi-compile:5.0.0-compose
ports:
- 9000:9000
deploy:
resources:
limits:
cpus: "1.5"
memory: 512M
restart: on-failure
volumes:
mydata: