docker-stacks/castopod/docker-compose.yml

47 lines
1.3 KiB
YAML
Raw Normal View History

2024-07-22 21:25:56 +00:00
services:
castopod:
2024-07-25 20:00:14 +00:00
image: 'castopod/castopod:${IMAGE_TAG:-latest}'
2024-07-22 21:25:56 +00:00
container_name: 'castopod'
volumes:
- '${MEDIA_PATH:-./media}:/var/www/castopod/public/media'
environment:
2024-07-25 20:00:14 +00:00
MYSQL_DATABASE: '${CP_DATABASE_NAME:-castopod}'
MYSQL_USER: '${CP_DATABASE_USERNAME:-castopod}'
MYSQL_PASSWORD: '${CP_DATABASE_PASSWORD}'
CP_BASEURL: "${CP_BASEURL}"
2024-07-22 21:25:56 +00:00
CP_ANALYTICS_SALT: '${CP_ANALYTICS_SALT}'
2024-07-25 20:00:14 +00:00
CP_CACHE_HANDLER: '${CP_CACHE_HANDLER:-redis}'
2024-07-22 21:25:56 +00:00
CP_REDIS_HOST: '${CP_REDIS_HOST:-redis}'
CP_REDIS_PASSWORD: '${CP_REDIS_PASSWORD}'
env_file: '.env'
networks:
- castopod
extra_hosts:
2024-07-25 20:00:14 +00:00
- 'host.docker.internal:host-gateway'
2024-07-22 21:25:56 +00:00
ports:
- '${EXTERNAL_ADDRESS:-127.0.0.1}:${EXTERNAL_PORT:-8393}:8000'
restart: unless-stopped
logging:
2024-07-25 20:00:14 +00:00
driver: 'json-file'
2024-07-22 21:25:56 +00:00
options:
2024-07-25 20:00:14 +00:00
max-size: '${LOG_MAX_SIZE:-5m}'
max-file: '${LOG_MAX_FILE:-5}'
2024-07-22 21:25:56 +00:00
redis:
2024-07-25 20:00:14 +00:00
image: 'redis:7.2-alpine'
container_name: 'castopod-redis'
2024-07-22 21:25:56 +00:00
command: '--requirepass ${CP_REDIS_PASSWORD}'
volumes:
- '${REDIS_DATA_PATH:-./redis_data}:/data'
networks:
- castopod
restart: unless-stopped
logging:
2024-07-25 20:00:14 +00:00
driver: 'json-file'
2024-07-22 21:25:56 +00:00
options:
2024-07-25 20:00:14 +00:00
max-size: '${LOG_MAX_SIZE:-5m}'
max-file: '${LOG_MAX_FILE:-5}'
2024-07-22 21:25:56 +00:00
networks:
castopod: