commit be4e815d4874219f383eabd78a210af95eb33042 Author: srv Date: Mon Jul 31 11:41:31 2023 -0300 Basic services diff --git a/firefly/docker-compose.yaml b/firefly/docker-compose.yaml new file mode 100644 index 0000000..bd344aa --- /dev/null +++ b/firefly/docker-compose.yaml @@ -0,0 +1,21 @@ +version: '3.3' + +services: + fireflyiii: + image: fireflyiii/core:latest + volumes: + - ${APPSDIR}/firefly/firefly_iii_upload:/var/www/html/storage/upload + env_file: .env + ports: + - 9912:8080 + depends_on: + - fireflyiiidb + fireflyiiidb: + image: yobasystems/alpine-mariadb:latest + environment: + - MYSQL_RANDOM_ROOT_PASSWORD=yes + - MYSQL_USER=firefly + - MYSQL_PASSWORD=secret_firefly_password + - MYSQL_DATABASE=firefly + volumes: + - ${APPSDIR}/firefly/firefly_db:/var/lib/mysql diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml new file mode 100644 index 0000000..eb83e0e --- /dev/null +++ b/gitea/docker-compose.yml @@ -0,0 +1,41 @@ +version: "3" + +networks: + gitea: + external: false + +services: + server: + image: gitea/gitea:1.16.9 + container_name: gitea + environment: + - USER_UID=1000 + - USER_GID=1000 + - GITEA__database__DB_TYPE=postgres + - GITEA__database__HOST=db:5432 + - GITEA__database__NAME=gitea + - GITEA__database__USER=gitea + - GITEA__database__PASSWD=gitea + restart: always + networks: + - gitea + volumes: + - ${APPSDIR}/gitea/gitea-data:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "3000:3000" + - "222:22" + depends_on: + - db + db: + image: postgres:14 + restart: always + environment: + - POSTGRES_USER=gitea + - POSTGRES_PASSWORD=gitea + - POSTGRES_DB=gitea + networks: + - gitea + volumes: + - ${APPSDIR}/gitea/postgres:/var/lib/postgresql/data diff --git a/grocy/docker-compose.yml b/grocy/docker-compose.yml new file mode 100644 index 0000000..e6bb389 --- /dev/null +++ b/grocy/docker-compose.yml @@ -0,0 +1,14 @@ +version: "2.1" +services: + grocy: + image: lscr.io/linuxserver/grocy:latest + container_name: grocy + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/London + volumes: + - ${APPSDIR}/grocy/config:/config + ports: + - 9283:80 + restart: unless-stopped diff --git a/jellyfin/docker-compose.yml b/jellyfin/docker-compose.yml new file mode 100755 index 0000000..44d6833 --- /dev/null +++ b/jellyfin/docker-compose.yml @@ -0,0 +1,20 @@ +version: "2.1" +services: + jellyfin: + image: ghcr.io/linuxserver/jellyfin + container_name: jellyfin + environment: + - PUID=${PUID} + - PGID=${PUID} + - TZ=${TZ} + volumes: + - ${BACKUPDIR}/jellyfin:/backups:rw + - ${APPSDIR}/jellyfin/config:/config:rw + - ${MEDIADIR}/series:/data/tvshows:rw + - ${MEDIADIR}/movies:/data/libmovies:rw + - ${MEDIADIR}/musics:/data/musics:rw + - ${MEDIADIR}/courses:/data/courses:rw + - ${MEDIADIR}/audiocourses:/data/audiocourses:rw + ports: + - 8096:8096 + restart: "unless-stopped" diff --git a/managers/docker-compose.yml b/managers/docker-compose.yml new file mode 100755 index 0000000..b83577f --- /dev/null +++ b/managers/docker-compose.yml @@ -0,0 +1,49 @@ +version: "3.6" +services: +######### FRONTENDS ########## + + #Portainer - WebUI for Containers + portainer: + image: portainer/portainer + hostname: portainer + container_name: portainer + restart: always + command: -H unix:///var/run/docker.sock + ports: + - "9000:9000" + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - .portainer/data:/data + - .shared:/shared + environment: + - TZ=${TZ} + +# Organizer - Unified HTPC/Home Server Web Interface + organizr: + container_name: organizr + hostname: organizr + restart: always + image: organizr/organizr + volumes: + - ./organizr:/config + - ./shared:/shared + ports: + - "8080:80" + environment: + - PUID="1000" + - PGID="1001" + - TZ="America/Sao_Paulo" + - fpm="false" + +######### DOCKER RELATED ########## + +# Watchtower - Automatic Update of Containers/Apps + watchtower: + container_name: watchtower + hostname: watchtower + restart: always + image: v2tec/watchtower + volumes: + - /var/run/docker.sock:/var/run/docker.sock + command: --schedule "0 0 4 * * *" --cleanup + diff --git a/pritunl/docker-compose.yml b/pritunl/docker-compose.yml new file mode 100644 index 0000000..989629c --- /dev/null +++ b/pritunl/docker-compose.yml @@ -0,0 +1,29 @@ +version: '3' + +services: + mongo: + image: mongo:4.4.6 + container_name: pritunldb + hostname: pritunldb + volumes: + - ${APPSDIR}/pritunl/db:/data/db + + pritunl: + image: goofball222/pritunl:latest + container_name: pritunl + hostname: pritunl + privileged: true + sysctls: + - net.ipv6.conf.all.disable_ipv6=0 + links: + - mongo + volumes: + - /etc/localtime:/etc/localtime:ro + ports: + - 1194:1194 + - 1194:1194/udp + - 9700:9700 + environment: + - TZ=UTC + - MONGODB_URI=mongodb://mongo:27017/pritunl + - REVERSE_PROXY=true