fix docker compose
This commit is contained in:
parent
c586d65461
commit
e420985c7e
@ -1,7 +1,9 @@
|
||||
# https://docs.castopod.org/main/en/getting-started/docker/
|
||||
|
||||
services:
|
||||
app:
|
||||
castopod:
|
||||
image: castopod/castopod:latest
|
||||
container_name: "castopod-app"
|
||||
container_name: "castopod"
|
||||
mem_limit: 512m
|
||||
env_file: .env
|
||||
volumes:
|
||||
@ -21,14 +23,14 @@ services:
|
||||
CP_EMAIL_SMTP_PASSWORD: ${CP_EMAIL_SMTP_PASSWORD}
|
||||
CP_EMAIL_SMTP_PORT: 587
|
||||
networks:
|
||||
- castopod-app
|
||||
- castopod
|
||||
- castopod-db
|
||||
ports:
|
||||
- 127.0.0.1:3008:8000
|
||||
restart: unless-stopped
|
||||
|
||||
mariadb:
|
||||
image: mariadb:10.5
|
||||
image: mariadb:11.2
|
||||
container_name: "castopod-mariadb"
|
||||
mem_limit: 512m
|
||||
networks:
|
||||
@ -39,19 +41,18 @@ services:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_DATABASE: castopod
|
||||
MYSQL_USER: castopod
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
image: redis:7.0-alpine
|
||||
image: redis:7.2-alpine
|
||||
container_name: "castopod-redis"
|
||||
mem_limit: 256m
|
||||
command: --requirepass ${CP_REDIS_PASSWORD}
|
||||
volumes:
|
||||
- castopod-cache:/data
|
||||
restart: always
|
||||
networks:
|
||||
- castopod-app
|
||||
- castopod
|
||||
|
||||
volumes:
|
||||
castopod-media:
|
||||
@ -59,5 +60,5 @@ volumes:
|
||||
castopod-cache:
|
||||
|
||||
networks:
|
||||
castopod-app:
|
||||
castopod-db:
|
||||
castopod:
|
||||
castopod-db:
|
Loading…
x
Reference in New Issue
Block a user