docker-test #1
4 changed files with 12 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
http_addr = "0.0.0.0:5500"
|
||||
|
||||
[gateway]
|
||||
host = "shorekeeper-gateway-server"
|
||||
host = "host.docker.internal"
|
||||
port = 7777
|
||||
|
||||
[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 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 rmi shorekeeper-builder:1.3.0-SNAPSHOT
|
||||
|
||||
# Persistence for the application
|
||||
docker volume create shorekeeper-postgres-vol
|
|
@ -66,5 +66,8 @@ services:
|
|||
environment:
|
||||
- "POSTGRES_PASSWORD=toor"
|
||||
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