34 lines
622 B
YAML
34 lines
622 B
YAML
services:
|
|
sodoff:
|
|
container_name: sodoff-jsgr
|
|
image: ${DOCKER_REGISTRY-}sodoff
|
|
build:
|
|
context: .
|
|
dockerfile: src/Dockerfile
|
|
ports:
|
|
- 5040:5000
|
|
networks:
|
|
- sodoff-backend
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
container_name: sodoff-jsgr-db
|
|
image: postgres:16.2-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: sodoff
|
|
POSTGRES_DB: sodoffdb
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
networks:
|
|
- sodoff-backend
|
|
|
|
networks:
|
|
sodoff-backend:
|
|
external: true
|
|
|
|
volumes:
|
|
postgres_data:
|