-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
68 lines (66 loc) · 1.6 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
61
62
63
64
65
66
67
68
version: "2.1"
services:
mongodb:
image: mongo:3.4.13
volumes:
- ./mongodb:/data/db
ports:
- 27017:27017
frontend:
image: frontend:latest
build:
context: ./frontend
args:
YFILES_ACCESS: "${TOKEN}"
ports:
- "8080:8080"
volumes:
- ./frontend:/src
api:
image: api:latest
build: ./api/.
# Enabled for Windows Users
mem_limit: 4g
volumes:
- ./api:/app
- ./sbt/server:/root
environment:
- APPLICATION_SECRET=superSecret
- ZETA_MONGODB_SERVER=mongodb
- ZETA_DEPLOYMENT=production
stdin_open: true
ports:
- 9000:9000
depends_on:
- "mongodb"
command:
[
"-Dlogger.play=ERROR",
"-Dlogger.application=ERROR",
"-Dzeta.webapp.host=frontend",
"project server",
"run",
]
# --> temporarily deactivated: generation will not currently take place in the dockers <--
#
# generatorControl:
# image: zeta-sbt:1.0.3
# build: ./api
# volumes:
# - ./api:/app
# - ./sbt/generatorControl:/root
# - /var/run/docker.sock:/var/run/docker.sock:ro
# command: ["project generatorControl", "run --master-port 2551 --master-num 1 --workers 3 --worker-seeds generatorControl:2551 --dev-port 2552 --dev-seeds generatorControl:2551"]
# environment:
# - ZETA_MONGODB_SERVER=mongodb
# links:
# - mongodb
#
# images:
# image: zeta-sbt:1.0.3
# build: ./api
# volumes:
# - ./api:/app
# - ./sbt/images:/root
# - /var/run/docker.sock:/var/run/docker.sock:ro
# command: ["./createDockerImages.sh"]