goscan/docker/compose.yml

36 lines
597 B
YAML
Raw Normal View History

2024-09-13 21:56:18 +01:00
networks:
goscan:
external: false
volumes:
goscan:
driver: local
services:
server:
build:
context: ..
dockerfile: Dockerfile
env_file:
- .env
restart: always
ports:
- "${PORT:-9000}:9000"
networks:
- goscan
volumes:
- goscan:/var/lib/goscan
- ./config.yml:/var/lib/goscan/config.yml
depends_on:
- db
db:
image: postgres:16-alpine3.20
env_file:
- .env
restart: always
environment:
POSTGRES_USER: "${POSTGRES_USER:-goscan}"
POSTGRES_DB: "${POSTGRES_DB:-goscan}"
networks:
- goscan