mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
All checks were successful
Build and push image / deploy (push) Has been cancelled
66 lines
1.3 KiB
YAML
66 lines
1.3 KiB
YAML
version: "2.4"
|
|
|
|
services:
|
|
|
|
cbwebreader:
|
|
build: .
|
|
env_file: .env
|
|
links:
|
|
- database
|
|
depends_on:
|
|
database:
|
|
condition: service_healthy
|
|
expose:
|
|
- 8000
|
|
volumes:
|
|
- ${COMIC_BOOK_VOLUME}:/comics
|
|
# - c:/comics:/comics
|
|
- static_files:/static
|
|
- media_files:/media
|
|
- .env:/src/.env
|
|
command: /bin/bash /src/entrypoint.sh
|
|
|
|
# cbwebreader-cron:
|
|
# build: .
|
|
# env_file: .env
|
|
# links:
|
|
# - database
|
|
# depends_on:
|
|
# database:
|
|
# condition: service_healthy
|
|
# volumes:
|
|
# - ${COMIC_BOOK_VOLUME}:${COMIC_BOOK_VOLUME}
|
|
# - media_files:/media
|
|
# - .env:/src/.env
|
|
# command: /bin/bash entrypoint-cron.sh
|
|
|
|
database:
|
|
image: postgres:16-alpine
|
|
expose:
|
|
- 5432
|
|
volumes:
|
|
- /var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U $DB_USER -d $DB_DATABASE"]
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 3
|
|
environment:
|
|
- POSTGRES_USER=${DB_USER}
|
|
- POSTGRES_PASSWORD=${DB_PASS}
|
|
- POSTGRES_DB=${DB_DATABASE}
|
|
|
|
nginx:
|
|
image: nginx
|
|
volumes:
|
|
- static_files:/static
|
|
- media_files:/media
|
|
- ./cbreader/settings/nginx.conf:/etc/nginx/conf.d/default.conf
|
|
ports:
|
|
- 8337:80
|
|
depends_on:
|
|
- cbwebreader
|
|
volumes:
|
|
static_files:
|
|
media_files:
|