56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
services:
|
|
mariadb:
|
|
image: mariadb:10.11
|
|
container_name: mariadb
|
|
env_file: "priv/env"
|
|
volumes:
|
|
- ./volumes/mariadb/db:/var/lib/mysql
|
|
networks:
|
|
- seafile
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"/usr/local/bin/healthcheck.sh",
|
|
"--connect",
|
|
"--mariadbupgrade",
|
|
"--innodb_initialized",
|
|
]
|
|
interval: 5s
|
|
start_period: 5s
|
|
timeout: 10s
|
|
retries: 10
|
|
|
|
memcached:
|
|
image: memcached:1.6.29
|
|
container_name: seafile-memcached
|
|
entrypoint: memcached -m 256
|
|
networks:
|
|
- seafile
|
|
|
|
seafile:
|
|
image: seafileltd/seafile-mc:12.0-latest
|
|
container_name: seafile
|
|
volumes:
|
|
- ./volumes/seafile:/shared
|
|
env_file: "priv/env"
|
|
depends_on:
|
|
mariadb:
|
|
condition: service_healthy
|
|
memcached:
|
|
condition: service_started
|
|
labels:
|
|
caddy: "https://seafile.keegandeppe.com"
|
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
|
networks:
|
|
- seafile
|
|
- caddy
|
|
|
|
networks:
|
|
seafile:
|
|
external: false
|
|
caddy:
|
|
external: true
|
|
name: caddy_caddy
|
|
driver: bridge
|