forked from datanoh/gemp-stccg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (78 loc) · 1.91 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
78
79
80
81
82
83
#version: "3.4"
#
services:
build:
env_file:
- .env
container_name: ${APP_CONTAINER_NAME}
build:
context: .
dockerfile: gemp-module/docker/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-module/gemp-stccg-client/src/main/web
target: /etc/gemp-module/web
- type: bind
source: gemp-module
target: /etc/gemp-module
- type: bind
source: gemp-module/gemp-stccg-client/src/main/web
target: /var/www/localhost/htdocs/gemp-module
- type: bind
source: logs
target: /logs
- type: bind
source: replay
target: /replay
- type: bind
source: .
target: /gemp-src
- type: bind
source: logs/nohup.out
target: /nohup.out
networks:
gemp_net_1:
ipv4_address: ${APP_IP}
tty: true
command: nohup java -jar /src/gemp-module/gemp-stccg-client/target/web.jar &
db:
env_file:
- .env
container_name: ${DB_CONTAINER_NAME}
build:
context: .
dockerfile: gemp-module/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.1.0/24
attachable: true