fix: 🐛 fixed driver and vehicle apis, swapped dbms to postgres and refactored project structure

This commit is contained in:
2025-01-08 22:42:09 +01:00
parent b40f4a0d02
commit d585c90a4e
12 changed files with 280 additions and 215 deletions

View File

@ -1,27 +1,25 @@
# Use postgres/example user/password credentials
services:
db:
image: postgres
environment:
- POSTGRES_USER=zahlenraten
- POSTGRES_PASSWORD=CYrcTzCEKyDtq&N0M
- POSTGRES_DB=game
restart: always
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- backend
- 5432:5432
# set shared memory limit when using docker-compose
shm_size: 128mb
# or set shared memory limit when deploy via swarm stack
#volumes:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
environment:
POSTGRES_USER: example
POSTGRES_PASSWORD: example
POSTGRES_DB: geotrack
GeoTrack:
build: .
ports:
- "8000:5000"
networks:
- backend
networks:
backend:
volumes:
pgdata:
adminer:
image: adminer
restart: always
ports:
- 8080:8080