docker-compose/castopod/docker-compose.yml

64 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2024-12-26 15:16:55 +01:00
# https://docs.castopod.org/main/en/getting-started/docker/
2024-05-13 08:32:46 +02:00
services:
2024-12-26 15:16:55 +01:00
castopod:
2024-05-13 08:32:46 +02:00
image: castopod/castopod:latest
2024-12-26 15:16:55 +01:00
container_name: "castopod"
2024-12-26 15:03:19 +01:00
mem_limit: 512m
2024-05-13 08:32:46 +02:00
env_file: .env
volumes:
- castopod-media:/var/www/castopod/public/media
environment:
MYSQL_DATABASE: castopod
MYSQL_USER: castopod
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
CP_BASEURL: ${CP_BASEURL}
CP_ANALYTICS_SALT: ${CP_ANALYTICS_SALT}
CP_CACHE_HANDLER: redis
CP_REDIS_HOST: redis
CP_REDIS_PASSWORD: ${CP_REDIS_PASSWORD}
CP_EMAIL_SMTP_HOST: ${CP_EMAIL_SMTP_HOST}
CP_EMAIL_FROM: ${CP_EMAIL_FROM}
CP_EMAIL_SMTP_USERNAME: ${CP_EMAIL_SMTP_USERNAME}
CP_EMAIL_SMTP_PASSWORD: ${CP_EMAIL_SMTP_PASSWORD}
CP_EMAIL_SMTP_PORT: 587
networks:
2024-12-26 15:16:55 +01:00
- castopod
2024-05-13 08:32:46 +02:00
- castopod-db
ports:
2024-12-24 20:58:18 +01:00
- 127.0.0.1:3008:8000
2024-05-13 08:32:46 +02:00
restart: unless-stopped
mariadb:
2024-12-26 15:16:55 +01:00
image: mariadb:11.2
2024-05-13 08:32:46 +02:00
container_name: "castopod-mariadb"
2024-12-29 16:24:28 +01:00
mem_limit: 1g
2024-05-13 08:32:46 +02:00
networks:
- castopod-db
volumes:
- castopod-db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: castopod
MYSQL_USER: castopod
2024-12-26 15:16:55 +01:00
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
2024-12-26 15:03:19 +01:00
restart: always
2024-05-13 08:32:46 +02:00
redis:
2024-12-26 15:16:55 +01:00
image: redis:7.2-alpine
2024-05-13 08:32:46 +02:00
container_name: "castopod-redis"
2024-12-26 15:03:19 +01:00
mem_limit: 256m
2024-05-13 08:32:46 +02:00
command: --requirepass ${CP_REDIS_PASSWORD}
volumes:
- castopod-cache:/data
networks:
2024-12-26 15:16:55 +01:00
- castopod
2024-05-13 08:32:46 +02:00
volumes:
castopod-media:
castopod-db:
castopod-cache:
networks:
2024-12-26 15:16:55 +01:00
castopod:
castopod-db: