forked from ketura/gemp-lotr
-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
77 lines (71 loc) · 1.84 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
69
70
71
72
73
74
75
76
77
version: "3.4"
services:
build:
env_file:
- .env
container_name: ${APP_CONTAINER_NAME}
build:
context: .
dockerfile: gemp_app.Dockerfile
image: gemp_app
expose:
- "80"
- "8080"
restart: always
ports:
# target means in the container
- target: 80
# published is what's on the host machine
published: "${APP_PORT}"
#These are the ports used for remote debugging the JRE
- target: 8000
published: 8052
volumes:
- type: bind
source: ../gemp-lotr-async/src/main/web
target: /etc/gemp-lotr/web
- type: bind
source: ../../gemp-lotr
target: /etc/gemp-lotr
- type: bind
source: ../../logs
target: /logs
- type: bind
source: ../../replay
target: /etc/gemp-lotr/replay
- type: bind
source: ../../logs/nohup.out
target: /etc/gemp-lotr/nohup.out
networks:
gemp_net_1:
ipv4_address: ${APP_IP}
tty: true
command: nohup java -jar -Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector /etc/gemp-lotr/gemp-lotr-async/target/web.jar &> /logs/nohup.out &
db:
env_file:
- .env
container_name: ${DB_CONTAINER_NAME}
build:
context: ..
dockerfile: docker/gemp_db.Dockerfile
image: gemp_db
ports:
# target means in the container
- target: 3306
# published is what's on the host machine
published: "${DB_PORT}"
restart: always
volumes:
- type: bind
source: ../../database
target: /var/lib/mysql
networks:
gemp_net_1:
ipv4_address: ${DB_IP}
networks:
gemp_net_1:
ipam:
driver: default
config:
- subnet: 172.28.${SERVID}.0/24
attachable: true