mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
update to Dockerfile to make the build much smaller.
This commit is contained in:
57
compose/docker-compose.yml
Normal file
57
compose/docker-compose.yml
Normal file
@@ -0,0 +1,57 @@
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
|
||||
cbwebreader:
|
||||
image: ajurna/cbwebreader
|
||||
env_file: .env
|
||||
links:
|
||||
- database
|
||||
depends_on:
|
||||
- database
|
||||
expose:
|
||||
- 8000
|
||||
volumes:
|
||||
- ${COMIC_BOOK_VOLUME}:${COMIC_BOOK_VOLUME}
|
||||
- static_files:/static
|
||||
- media_files:/media
|
||||
- .env:/src/.env
|
||||
command: /bin/bash entrypoint.sh
|
||||
|
||||
cbwebreader-cron:
|
||||
image: ajurna/cbwebreader
|
||||
env_file: .env
|
||||
links:
|
||||
- database
|
||||
depends_on:
|
||||
- database
|
||||
volumes:
|
||||
- ${COMIC_BOOK_VOLUME}:${COMIC_BOOK_VOLUME}
|
||||
- media_files:/media
|
||||
- .env:/src/.env
|
||||
command: /bin/bash entrypoint-cron.sh
|
||||
|
||||
database:
|
||||
image: postgres:11.4-alpine
|
||||
expose:
|
||||
- 5432
|
||||
volumes:
|
||||
- ./data:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=${DB_USER}
|
||||
- POSTGRES_PASSWORD=${DB_PASS}
|
||||
- POSTGRES_DB=${DB_DATABASE}
|
||||
|
||||
nginx:
|
||||
image: nginx
|
||||
volumes:
|
||||
- static_files:/static
|
||||
- media_files:/media
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
ports:
|
||||
- 1337:80
|
||||
depends_on:
|
||||
- cbwebreader
|
||||
volumes:
|
||||
static_files:
|
||||
media_files:
|
||||
Reference in New Issue
Block a user