-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
castopod.yml
61 lines (56 loc) · 1.75 KB
/
castopod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# DOMAIN=example.com docker stack deploy -c castopod.yml castopod
# php spark install:create-superadmin # Create first admin user
services:
castopod:
image: castopod/castopod:${VERSION:-1.13.0}
volumes:
- ${VOLUME_PATH}media:/var/www/castopod/public/media
environment:
- MYSQL_DATABASE=castopod
- MYSQL_USER=castopod
- MYSQL_PASSWORD=myp@ssw0rd
- CP_CACHE_HANDLER=redis
- CP_REDIS_HOST=redis
- CP_REDIS_PASSWORD=myp@ssw0rd
- CP_ANALYTICS_SALT=changeme
- CP_BASEURL=${SCHEME:-https}://${DOMAIN:-castopod.localhost}
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.castopod-${NUMBER:-1}.rule=Host(`${DOMAIN:-castopod.localhost}`)
- traefik.http.routers.castopod-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.castopod-${NUMBER:-1}.service=castopod-${NUMBER:-1}
- traefik.http.routers.castopod-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.castopod-${NUMBER:-1}.loadbalancer.server.port=8000
networks:
- internal
- traefik
mariadb:
image: mariadb:${MARIADB_VERSION:-10.5.9}
volumes:
- ${VOLUME_PATH}mariadb:/var/lib/mysql:cached
environment:
- MYSQL_USER=${MYSQL_USER:-castopod}
- MYSQL_DATABASE=${MYSQL_DATABASE:-castopod}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-myp@ssw0rd}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-myp@ssw0rd}
networks:
- internal
redis:
image: redis:7-alpine
command: --requirepass myp@ssw0rd
volumes:
- redis:/data
networks:
- internal
volumes:
media:
redis:
mariadb:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net