Docker Update
Fixed net naming schema for hopefully the last time. Added a log file binding so that gemp logs can be accessed outside the container.
This commit is contained in:
@@ -3,11 +3,11 @@ COMPOSE_PROJECT_NAME=gemp_${SERVID}
|
||||
|
||||
APP_CONTAINER_NAME=gemp_app_${SERVID}
|
||||
APP_IP=172.28.${SERVID}.2
|
||||
APP_PORT=17001
|
||||
APP_PORT=1700${SERVID}
|
||||
|
||||
DB_CONTAINER_NAME=gemp_db_${SERVID}
|
||||
DB_IP=172.28.${SERVID}.3
|
||||
DB_PORT=35001
|
||||
DB_PORT=3500${SERVID}
|
||||
|
||||
MYSQL_ROOT_PASSWORD=rootpass
|
||||
MYSQL_DATABASE=gemp_db
|
||||
|
||||
@@ -29,8 +29,11 @@ services:
|
||||
- type: bind
|
||||
source: ../gemp-lotr-async/src/main/web
|
||||
target: /var/www/localhost/htdocs/gemp-lotr #/etc/apache2/htdocs/gemp-lotr
|
||||
- type: bind
|
||||
source: ../../logs
|
||||
target: /logs
|
||||
networks:
|
||||
gemp_net:
|
||||
gemp_net_1:
|
||||
ipv4_address: ${APP_IP}
|
||||
tty: true
|
||||
#command: nohup java -jar /etc/gemp-lotr/gemp-lotr-async/target/web.jar &
|
||||
@@ -55,13 +58,13 @@ services:
|
||||
source: ../../database
|
||||
target: /var/lib/mysql
|
||||
networks:
|
||||
gemp_net:
|
||||
gemp_net_1:
|
||||
ipv4_address: ${DB_IP}
|
||||
|
||||
|
||||
networks:
|
||||
gemp_net:
|
||||
gemp_net_1:
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: 172.28.0.0/16
|
||||
- subnet: 172.28.1.0/24
|
||||
Reference in New Issue
Block a user