36 lines
597 B
YAML
36 lines
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
|