seafile-containerized/compose/docker-compose-kompose.yml

98 lines
2.5 KiB
YAML
Raw Normal View History

# This is a compose file with additional fields for the tool kompose.
# Generate Kubernetes manifests with the following command:
# kompose convert --with-kompose-annotation=false -o k8s -f compose/docker-compose-kompose.yml
2023-12-05 13:20:40 +00:00
version: '3.8'
services:
seafile-server:
image: ggogel/seafile-server:11.0.10
2023-12-05 13:20:40 +00:00
volumes:
- seafile-data:/shared
environment:
- DB_HOST=db
- DB_ROOT_PASSWD=db_dev
- TIME_ZONE=Europe/Berlin
- HTTPS=true
- SEAFILE_URL=seafile.mydomain.com # Mandatory on first deployment!
networks:
- seafile-net
expose:
- 8001
- 8080
- 8082
- 8083
labels:
kompose.volume.size: 1Gi
kompose.service.expose.storage-class-name: default
kompose.service.healthcheck.readiness.tcp_port: 8082
kompose.service.healthcheck.readiness.interval: 10s
kompose.service.healthcheck.readiness.timeout: 10s
restart: always
2023-12-05 13:20:40 +00:00
seahub:
image: ggogel/seahub:11.0.10
2023-12-05 13:20:40 +00:00
volumes:
- seafile-data:/shared
- seahub-avatars:/shared/seafile/seahub-data/avatars
- seahub-custom:/shared/seafile/seahub-data/custom
environment:
- SEAFILE_ADMIN_EMAIL=me@example.com
- SEAFILE_ADMIN_PASSWORD=asecret
networks:
- seafile-net
expose:
- 8000
restart: always
2023-12-05 13:20:40 +00:00
seahub-media:
image: ggogel/seahub-media:11.0.10
2023-12-05 13:20:40 +00:00
volumes:
- seahub-avatars:/usr/share/caddy/media/avatars
- seahub-custom:/usr/share/caddy/media/custom
networks:
- seafile-net
expose:
- 80
labels:
kompose.volume.size: 100Mi
kompose.service.expose.storage-class-name: default
restart: always
2023-12-05 13:20:40 +00:00
db:
2024-05-24 04:08:34 +00:00
image: mariadb:10.11.8
2023-12-05 13:20:40 +00:00
environment:
- MYSQL_ROOT_PASSWORD=db_dev
- MYSQL_LOG_CONSOLE=true
- MARIADB_AUTO_UPGRADE=true
volumes:
- seafile-mariadb:/var/lib/mysql
networks:
- seafile-net
expose:
- 3306
labels:
kompose.volume.size: 1Gi
kompose.service.expose.storage-class-name: default
kompose.service.healthcheck.readiness.test: "healthcheck.sh --su-mysql --connect --innodb_initialized"
kompose.service.healthcheck.readiness.interval: 10s
kompose.service.healthcheck.readiness.timeout: 10s
kompose.service.healthcheck.readiness.retries: 3
restart: always
2023-12-05 13:20:40 +00:00
memcached:
2024-07-02 01:47:10 +00:00
image: memcached:1.6.29
2023-12-05 13:20:40 +00:00
entrypoint: memcached -m 1024
networks:
- seafile-net
expose:
- 11211
restart: always
2023-12-05 13:20:40 +00:00
networks:
seafile-net:
internal: true
volumes:
seafile-data:
seafile-mariadb:
seahub-avatars:
seahub-custom: