Files

35 lines
530 B
YAML

version: '3'
networks:
dbi:
external: false
services:
db:
image: postgres:17-alpine
restart: always
volumes:
- ./data:/var/lib/postgresql/data
networks:
- dbi
env_file:
- .env_db
web:
# to build the image
#build:
# context: .
# to pull the pre-built image
image: git.kklochko.space/kklochko/decentralised_book_index:latest
container_name: dbi
ports:
- 4000:4000
depends_on:
- db
networks:
- dbi
env_file:
- .env