Tested setup

This commit is contained in:
xavo95 2024-09-12 17:05:16 +02:00
parent f1e3ce8887
commit deb86efff3
Signed by: xavo95
GPG key ID: CBF8ADED6DEBB783
4 changed files with 12 additions and 3 deletions

View file

@ -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]

View file

@ -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

View file

@ -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

View file

@ -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