Initial commit
This commit is contained in:
commit
9e323c0a30
9 changed files with 163 additions and 0 deletions
72
README.adoc
Normal file
72
README.adoc
Normal file
|
@ -0,0 +1,72 @@
|
|||
= Siina's Docker Compose Stuff
|
||||
:toc: macro
|
||||
:toclevels: 2
|
||||
:toc-title:
|
||||
|
||||
|
||||
toc::[]
|
||||
|
||||
== Portainer
|
||||
|
||||
Start Portainer (adjust `BASE_DATA_DIR`):
|
||||
|
||||
```
|
||||
docker run -d \
|
||||
-p 8000:8000 \
|
||||
-p 9443:9443 \
|
||||
--name portainer \
|
||||
--restart=always \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v ${BASE_DATA_DIR}/portainer/data:/data \
|
||||
portainer/portainer-ce:latest
|
||||
```
|
||||
|
||||
Start portainer agent on any remote host (adjust `BASE_DATA_DIR`):
|
||||
|
||||
```
|
||||
docker run -d \
|
||||
-p 9001:9001 \
|
||||
--name portainer_agent \
|
||||
--restart=always \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v ${BASE_DATA_DIR}:/var/lib/docker/volumes \
|
||||
portainer/agent:latest
|
||||
```
|
||||
|
||||
== Required Environment Variables
|
||||
|
||||
Copy `.env-example` to `.env` in the desired stack or fill out in portainer.
|
||||
|
||||
IMPORTANT: Each service will append the stack name to `BASE_DATA_DIR`
|
||||
|
||||
=== Flarum
|
||||
|
||||
```
|
||||
BASE_DATA_DIR=
|
||||
MYSQL_ROOT_PASSWORD=
|
||||
MYSQL_DATABASE=
|
||||
MYSQL_PASSWORD=
|
||||
```
|
||||
|
||||
=== Jellyfin
|
||||
|
||||
```
|
||||
BASE_DATA_DIR=
|
||||
JELLYFIN_PublishedServerUrl=
|
||||
MUSIC_DIR=
|
||||
VIDEO_DIR=
|
||||
```
|
||||
|
||||
=== NGINX Proxy Manager
|
||||
|
||||
```
|
||||
BASE_DATA_DIR=
|
||||
```
|
||||
|
||||
=== Pi-hole
|
||||
|
||||
```
|
||||
BASE_DATA_DIR=
|
||||
TZ=
|
||||
WEBPASSWORD=
|
||||
```
|
4
flarum/.env-example
Normal file
4
flarum/.env-example
Normal file
|
@ -0,0 +1,4 @@
|
|||
BASE_DATA_DIR=
|
||||
MYSQL_ROOT_PASSWORD=
|
||||
MYSQL_DATABASE=
|
||||
MYSQL_PASSWORD=
|
26
flarum/docker-compose.yml
Normal file
26
flarum/docker-compose.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
version: '3.8'
|
||||
services:
|
||||
flarum:
|
||||
image: mondedie/flarum:latest
|
||||
container_name: flarum
|
||||
volumes:
|
||||
- ${BASE_DATA_DIR}/flarum/assets:/flarum/app/public/assets
|
||||
- ${BASE_DATA_DIR}/flarum/extensions:/flarum/app/public/exstensions
|
||||
- ${BASE_DATA_DIR}/flarum/logs:/flarum/app/storage/logs
|
||||
- ${BASE_DATA_DIR}/flarum/nginx:/etc/nginx/flarum
|
||||
ports:
|
||||
- 80:8888
|
||||
depends_on:
|
||||
- mariadb
|
||||
mariadb:
|
||||
image: mariadb:latest
|
||||
container_name: flarum_mariadb
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_USER=${MYSQL_PASSWORD}
|
||||
volumes:
|
||||
- ${BASE_DATA_DIR}/flarum/db:/var/lib/mysql
|
||||
networks:
|
||||
default:
|
||||
name: flarum
|
5
jellyfin/.env-example
Normal file
5
jellyfin/.env-example
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
BASE_DATA_DIR=
|
||||
JELLYFIN_PublishedServerUrl=
|
||||
MUSIC_DIR=
|
||||
VIDEO_DIR=
|
15
jellyfin/docker-compose.yml
Normal file
15
jellyfin/docker-compose.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
version: '3.8'
|
||||
services:
|
||||
jellyfin:
|
||||
image: jellyfin/jellyfin
|
||||
container_name: jellyfin
|
||||
user: 1000:1000
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ${BASE_DATA_DIR}/jellyfin/config:/config
|
||||
- ${BASE_DATA_DIR}/jellyfin/cache:/cache
|
||||
- ${MUSIC_DIR}:/music
|
||||
- ${VIDEO_DIR}:/video
|
||||
restart: unless-stopped
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway
|
1
nginx-proxy-manager/.env-example
Normal file
1
nginx-proxy-manager/.env-example
Normal file
|
@ -0,0 +1 @@
|
|||
BASE_DATA_DIR=
|
16
nginx-proxy-manager/nginx-proxy-manager-compose.yml
Normal file
16
nginx-proxy-manager/nginx-proxy-manager-compose.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
version: '3.8'
|
||||
services:
|
||||
app:
|
||||
image: jc21/nginx-proxy-manager:latest
|
||||
container_name: nginx-proxy-manager
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 80:80
|
||||
- 81:81
|
||||
- 443:443
|
||||
volumes:
|
||||
- ${BASE_DATA_DIR}/nginx-proxy-manager/data:/data
|
||||
- ${BASE_DATA_DIR}/nginx-proxy-manager/letsencrypt:/etc/letsencrypt
|
||||
networks:
|
||||
default:
|
||||
name: nginx-proxy-manager
|
3
pihole/.env-example
Normal file
3
pihole/.env-example
Normal file
|
@ -0,0 +1,3 @@
|
|||
BASE_DATA_DIR=
|
||||
TZ=
|
||||
WEBPASSWORD=
|
21
pihole/docker-compose.yml
Normal file
21
pihole/docker-compose.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
version: '3.8'
|
||||
services:
|
||||
pihole:
|
||||
image: pihole/pihole:latest
|
||||
container_name: pihole
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
environment:
|
||||
TZ: ${TZ}
|
||||
WEBPASSWORD: ${WEBPASSWORD}
|
||||
env_file:
|
||||
- ./env/pihole
|
||||
volumes:
|
||||
- ${BASE_DATA_DIR}/pihole/etc-pihole:/etc/pihole
|
||||
- ${BASE_DATA_DIR}/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
networks:
|
||||
default:
|
||||
name: host
|
||||
external: true
|
Loading…
Reference in a new issue