-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose-production.yml
61 lines (56 loc) · 1.7 KB
/
docker-compose-production.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
version: '3.7'
networks:
overlay-net:
external: true
driver: overlay
services:
prod:
image: iudx/aaa-depl:latest
environment:
- AUTH_URL=https://authorization.iudx.org.in
- LOG_LEVEL=INFO
- AUTH_JAVA_OPTS=-Xmx4096m
volumes:
- ./configs/config-depl.json:/usr/share/app/configs/config.json
- ./configs/keystore.jks:/usr/share/app/configs/keystore.jks
depends_on:
- "zookeeper"
ports:
- "9000:9000"
- "8080:8080"
restart: on-failure
networks:
- overlay-net
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
command: bash -c "exec java $$AUTH_JAVA_OPTS -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$(hostname) -c configs/config.json"
dev:
image: iudx/aaa-dev:latest
environment:
- AUTH_URL=https://authorization.iudx.org.in
- LOG_LEVEL=INFO
- AUTH_JAVA_OPTS=-Xmx4096m
volumes:
- ./configs/config-dev.json:/usr/share/app/configs/config.json
- ./configs/keystore.jks:/usr/share/app/configs/keystore.jks
ports:
- "9000:9000"
- "8080:8080"
restart: on-failure
networks:
- overlay-net
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100m"
command: bash -c "exec java $$AUTH_JAVA_OPTS -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$(hostname) -c configs/config.json"
zookeeper:
image: zookeeper:latest
expose:
- "2181"
networks:
- overlay-net