-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1022 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:
schedule-web:
image: nginx
ports:
- 17801:80
volumes:
- ./dist:/usr/share/nginx/html:ro
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- schedule-api
deploy:
resources:
limits:
cpus: "0.50"
memory: 128M
schedule-api:
image: adoptopenjdk/openjdk8:jre8u282-b08-debian
depends_on:
- schedule-db
command: "bash /opt/app/start.sh"
working_dir: "/opt/app"
volumes:
- ./api:/opt/app
deploy:
resources:
limits:
cpus: "0.50"
memory: 512M
schedule-db:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=schedule
- MYSQL_DATABASE=schedule
volumes:
- ./db:/var/lib/mysql
ports:
- 17361:3306
expose:
- "3306"
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
deploy:
resources:
limits:
cpus: "0.50"
memory: 256M