version: "2.4" services: cbwebreader: image: ajurna/cbwebreader env_file: .env links: - database depends_on: database: condition: service_healthy 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: 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:11.4-alpine expose: - 5432 volumes: - ./data:/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 - ./nginx.conf:/etc/nginx/conf.d/default.conf ports: - 1337:80 depends_on: - cbwebreader volumes: static_files: media_files: