version: '3.6' services: main: build: . environment: SEAFILE_SERVER_NAME: Seafile SEAFILE_SERVER_HOST: seafile.example.com ports: - '8000:8000' - '8080:8080' - '8082:8082' volumes: - seafile-data:/opt/seafile restart: unless-stopped volumes: seafile-data: