-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
60 lines (60 loc) · 1.78 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
version: "3.7"
services:
backend:
build:
context: .
dockerfile: back_end.Dockerfile
target: production
args:
- DANIEL_SCRIPT_DIR=/app/back_end/scripts
- DANIEL_DB_DIR=/db
- DANIEL_USERDAT_DIR=/userdat
image: bioinformaticsleibnizhki/daniel_backend
deploy:
mode: global
restart_policy:
condition: on-failure
resources:
limits:
cpus: "10"
memory: "20G"
reservations:
cpus: "10"
memory: "5G"
ports:
- "9001:22"
volumes:
- ${DANIEL_USERDAT_DIR}:/userdat
- ${DANIEL_DB_DIR}:/db:ro
- ${DANIEL_DIR}/repo:/app
environment:
- DANIEL_SCRIPT_DIR=/app/back_end/scripts
- DANIEL_DB_DIR=/db
- DANIEL_USERDAT_DIR=/userdat
frontend:
build:
context: .
dockerfile: front_end.Dockerfile
target: production
image: bioinformaticsleibnizhki/daniel_frontend
deploy:
mode: global
restart_policy:
condition: on-failure
resources:
limits:
cpus: "2"
memory: "5G"
reservations:
cpus: "2"
memory: "5G"
ports:
- "3838:3838"
- "8888:8888"
volumes:
- ${DANIEL_DIR}/repo/front_end:/srv/shiny-server/latest
- ${DANIEL_USERDAT_DIR}:/userdat
- ${DANIEL_DB_DIR}:/db:ro
environment:
- DANIEL_DB_DIR=/db
- DANIEL_USERDAT_DIR=/userdat