version: '2.0' services: db: image: "docker.io/library/mariadb:${mariadb_release}" container_name: seafile-db environment: - MYSQL_LOG_CONSOLE=true env_file: - .env volumes: - seafile-db:/var/lib/mysql:Z memcached: image: "docker.io/library/memcached:${memcached_release}" container_name: seafile-memcached command: memcached -m 256 seafile: image: "${seafile_image}:${seafile_release}" container_name: seafile ports: - ${listen_if}:${listen_port}:80 volumes: - seafile-data:/shared:Z environment: - DB_HOST=db - TIME_ZONE=Europe/Paris - SEAFILE_SERVER_LETSENCRYPT=false env_file: - .env depends_on: - db - memcached volumes: seafile-db: seafile-data: