init
This commit is contained in:
103
docker-compose.yml
Executable file
103
docker-compose.yml
Executable file
@@ -0,0 +1,103 @@
|
||||
version: '3.0'
|
||||
services:
|
||||
|
||||
# note: password for mysql user 'seafile' is created (randomly?) on 1st run of seafile container
|
||||
db:
|
||||
image: linuxserver/mariadb:latest
|
||||
container_name: seafile-mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWD}
|
||||
- MYSQL_LOG_CONSOLE=true
|
||||
- TZ=${TZ}
|
||||
profiles:
|
||||
- init
|
||||
- prod
|
||||
volumes:
|
||||
- db:/var/lib/mysql
|
||||
networks:
|
||||
- seafile-net
|
||||
|
||||
autossh-fileserver:
|
||||
container_name: seafile-autossh-fileserver
|
||||
restart: on-failure
|
||||
image: jnovack/autossh:latest
|
||||
volumes:
|
||||
- ./ssh/id_rsa:/id_rsa
|
||||
environment:
|
||||
- PubkeyAuthentication=yes
|
||||
- StrictHostKeyChecking=false
|
||||
- PasswordAuthentication=no
|
||||
- SSH_SERVER_ALIVE_INTERVAL=30
|
||||
- ExitOnForwardFailure=yes
|
||||
- SSH_REMOTE_USER=autotunnel
|
||||
- SSH_REMOTE_HOST=arwing.zinomedia.de
|
||||
- SSH_REMOTE_PORT=1337
|
||||
- SSH_TUNNEL_PORT=8063 # incoming port on remote server
|
||||
- SSH_TARGET_PORT=8082 # port of application to forward
|
||||
- SSH_TARGET_HOST=seafile
|
||||
profiles:
|
||||
- prod
|
||||
depends_on:
|
||||
- seafile
|
||||
networks:
|
||||
- seafile-net
|
||||
autossh-seahub:
|
||||
container_name: seafile-autossh-seahub
|
||||
restart: on-failure
|
||||
image: jnovack/autossh:latest
|
||||
volumes:
|
||||
- ./ssh/id_rsa:/id_rsa
|
||||
environment:
|
||||
- PubkeyAuthentication=yes
|
||||
- StrictHostKeyChecking=false
|
||||
- PasswordAuthentication=no
|
||||
- SSH_SERVER_ALIVE_INTERVAL=30
|
||||
- ExitOnForwardFailure=yes
|
||||
- SSH_REMOTE_USER=autotunnel
|
||||
- SSH_REMOTE_HOST=arwing.zinomedia.de
|
||||
- SSH_REMOTE_PORT=1337
|
||||
- SSH_TUNNEL_PORT=8062 # incoming port on remote server
|
||||
- SSH_TARGET_PORT=80 # port of application to forward
|
||||
- SSH_TARGET_HOST=seafile
|
||||
profiles:
|
||||
- prod
|
||||
depends_on:
|
||||
- seafile
|
||||
networks:
|
||||
- seafile-net
|
||||
|
||||
seafile:
|
||||
image: "seafileltd/seafile-mc:${SEAFILE_VERSION}"
|
||||
container_name: seafile
|
||||
restart: always
|
||||
ports:
|
||||
- "${SEAFILE_SEAHUB_PORT}:80"
|
||||
- "8082:8082"
|
||||
volumes:
|
||||
- ${SEAFILE_DATA_DIR}:/shared
|
||||
- media:/shared/media
|
||||
environment:
|
||||
- PUID=${PUID}
|
||||
- PGID=${PGID}
|
||||
- TZ=${TZ}
|
||||
- SEAFILE_ADMIN_EMAIL=${SEAFILE_ADMIN_EMAIL}
|
||||
- SEAFILE_ADMIN_PASSWORD=${SEAFILE_ADMIN_PASSWORD}
|
||||
- SEAFILE_SERVER_LETSENCRYPT=false
|
||||
- SEAFILE_SERVER_HOSTNAME=${URL}
|
||||
- DB_HOST=db
|
||||
- DB_ROOT_PASSWD=${MYSQL_ROOT_PASSWD}
|
||||
depends_on:
|
||||
- db
|
||||
profiles:
|
||||
- prod
|
||||
networks:
|
||||
- seafile-net
|
||||
|
||||
volumes:
|
||||
media:
|
||||
db:
|
||||
|
||||
networks:
|
||||
seafile-net:
|
||||
external: false
|
||||
name: seafile-net
|
||||
Reference in New Issue
Block a user