-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml
60 lines (55 loc) · 1.65 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'
networks:
auth-net:
driver: bridge
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
ports:
- "8080:8080"
- "9000:9000"
restart: on-failure
depends_on:
- "zookeeper"
networks:
- auth-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:
- auth-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:
- auth-net