docker-test #1
4 changed files with 12 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
http_addr = "0.0.0.0:5500"
|
http_addr = "0.0.0.0:5500"
|
||||||
|
|
||||||
[gateway]
|
[gateway]
|
||||||
host = "shorekeeper-gateway-server"
|
host = "host.docker.internal"
|
||||||
port = 7777
|
port = 7777
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
|
|
|
@ -7,3 +7,6 @@ docker build -t shorekeeper-gateway-server:1.3.0-SNAPSHOT --build-arg MICROSERVI
|
||||||
docker build -t shorekeeper-game-server:1.3.0-SNAPSHOT --build-arg MICROSERVICE=game-server -f Dockerfile-service .
|
docker build -t shorekeeper-game-server:1.3.0-SNAPSHOT --build-arg MICROSERVICE=game-server -f Dockerfile-service .
|
||||||
|
|
||||||
docker rmi shorekeeper-builder:1.3.0-SNAPSHOT
|
docker rmi shorekeeper-builder:1.3.0-SNAPSHOT
|
||||||
|
|
||||||
|
: Persistence for the application
|
||||||
|
docker volume create shorekeeper-postgres-vol
|
|
@ -7,3 +7,6 @@ docker build -t shorekeeper-gateway-server:1.3.0-SNAPSHOT --build-arg MICROSERVI
|
||||||
docker build -t shorekeeper-game-server:1.3.0-SNAPSHOT --build-arg MICROSERVICE=game-server -f Dockerfile-service .
|
docker build -t shorekeeper-game-server:1.3.0-SNAPSHOT --build-arg MICROSERVICE=game-server -f Dockerfile-service .
|
||||||
|
|
||||||
docker rmi shorekeeper-builder:1.3.0-SNAPSHOT
|
docker rmi shorekeeper-builder:1.3.0-SNAPSHOT
|
||||||
|
|
||||||
|
# Persistence for the application
|
||||||
|
docker volume create shorekeeper-postgres-vol
|
|
@ -66,5 +66,8 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- "POSTGRES_PASSWORD=toor"
|
- "POSTGRES_PASSWORD=toor"
|
||||||
volumes:
|
volumes:
|
||||||
# If you want to have persistence, mount postgres data folder
|
|
||||||
- "./assets/docker/postgres/scripts:/docker-entrypoint-initdb.d"
|
- "./assets/docker/postgres/scripts:/docker-entrypoint-initdb.d"
|
||||||
|
- shorekeeper-postgres-vol:/var/lib/postgresql/data
|
||||||
|
volumes:
|
||||||
|
shorekeeper-postgres-vol:
|
||||||
|
external: true
|
Loading…
Reference in a new issue