goscan/docker/compose.yml
Shane C 03e9e6bc40
All checks were successful
GoSec Scan / Gosec Check (push) Successful in 7s
add basic bot
2024-09-13 16:56:18 -04:00

36 lines
No EOL
597 B
YAML

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