# 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 version: '3.8' services: seafile-server: image: ggogel/seafile-server:11.0.12 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 seahub: image: ggogel/seahub:11.0.12 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 seahub-media: image: ggogel/seahub-media:11.0.12 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 db: image: mariadb:10.11.9 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 memcached: image: memcached:1.6.29 entrypoint: memcached -m 1024 networks: - seafile-net expose: - 11211 restart: always networks: seafile-net: internal: true volumes: seafile-data: seafile-mariadb: seahub-avatars: seahub-custom: