Added seafile config.
This commit is contained in:
parent
19d3d161a8
commit
570bfd4c29
4 changed files with 306 additions and 0 deletions
74
docker-compose-seafile.yaml
Normal file
74
docker-compose-seafile.yaml
Normal file
|
@ -0,0 +1,74 @@
|
|||
services:
|
||||
acme.sh:
|
||||
command:
|
||||
- daemon
|
||||
container_name: acme.sh
|
||||
env_file:
|
||||
- ./.secrets/acme.sh.env
|
||||
image: 'ghcr.io/polarix-containers/acme.sh:latest'
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data/acme.sh:/acme.sh:Z
|
||||
- ./data/certs:/certs:z
|
||||
reverse-proxy:
|
||||
image: ghcr.io/nginxinc/nginx-unprivileged:mainline-alpine-slim
|
||||
container_name: reverse_proxy
|
||||
restart: always
|
||||
ports:
|
||||
- "443:8443"
|
||||
volumes:
|
||||
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./config/nginx/tls.conf:/etc/nginx/conf.d/tls.conf:ro
|
||||
- ./data/certs:/etc/nginx/ssl:ro
|
||||
networks:
|
||||
- frontend
|
||||
depends_on:
|
||||
- seafile
|
||||
db:
|
||||
restart: always
|
||||
image: cgr.dev/chainguard/mariadb #mariadb:10.11
|
||||
container_name: seafile-mysql
|
||||
env_file:
|
||||
- ./.secrets/seafile.env
|
||||
environment:
|
||||
- MYSQL_LOG_CONSOLE=true
|
||||
- MARIADB_AUTO_UPGRADE=1
|
||||
volumes:
|
||||
- ./data/seafile-mysql/db:/var/lib/mysql
|
||||
networks:
|
||||
- seafile-net
|
||||
memcached:
|
||||
restart: always
|
||||
image: memcached:latest ##:1.6.18
|
||||
container_name: seafile-memcached
|
||||
entrypoint: memcached -m 256
|
||||
networks:
|
||||
- seafile-net
|
||||
seafile:
|
||||
restart: always
|
||||
image: seafileltd/seafile-mc:11.0-latest
|
||||
container_name: seafile
|
||||
volumes:
|
||||
- ./data/seafile-data:/shared # Required, specifies the path to Seafile data persistent store.
|
||||
env_file:
|
||||
- ./.secrets/seafile.env
|
||||
environment:
|
||||
- DB_HOST=db
|
||||
- TIME_ZONE=Etc/GMT+2 # Optional, default is UTC. Should be uncomment and set to your local time zone.
|
||||
- SEAFILE_SERVER_HOSTNAME=seafile.homelab0ne.xyz # Specifies your host name if https is enabled.
|
||||
- NON_ROOT=true
|
||||
depends_on:
|
||||
- db
|
||||
- memcached
|
||||
networks:
|
||||
seafile-net:
|
||||
frontend:
|
||||
aliases:
|
||||
- seafile
|
||||
|
||||
networks:
|
||||
joplin:
|
||||
external: false
|
||||
frontend:
|
||||
driver: bridge
|
||||
seafile-net:
|
Loading…
Add table
Add a link
Reference in a new issue