docker-compose/README.adoc

73 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-12-25 03:05:38 +02:00
= 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=
```