chore: layout changes
This commit is contained in:
parent
83091962a2
commit
c67fab85c8
6 changed files with 50 additions and 35 deletions
|
@ -13,12 +13,13 @@
|
||||||
# as a shared secret.
|
# as a shared secret.
|
||||||
#
|
#
|
||||||
# Replace {ROOT_PASSWORD} with a secure password
|
# Replace {ROOT_PASSWORD} with a secure password
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# https://code.forgejo.org/forgejo/runner/src/branch/main/examples/docker-compose
|
# https://code.forgejo.org/forgejo/runner/src/branch/main/examples/docker-compose
|
||||||
docker-in-docker:
|
docker-in-docker:
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
privileged: true
|
|
||||||
command: ["dockerd", "-H", "tcp://0.0.0.0:2375", "--tls=false"]
|
command: ["dockerd", "-H", "tcp://0.0.0.0:2375", "--tls=false"]
|
||||||
|
privileged: true
|
||||||
|
|
||||||
forgejo:
|
forgejo:
|
||||||
image: codeberg.org/forgejo/forgejo:1.21
|
image: codeberg.org/forgejo/forgejo:1.21
|
||||||
|
@ -40,19 +41,27 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/forgejo-data:/data
|
- ./volumes/forgejo-data:/data
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:13000:3000
|
- "127.0.0.1:13000:3000"
|
||||||
|
|
||||||
runner-register:
|
runner-daemon:
|
||||||
image: code.forgejo.org/forgejo/runner:3.3.0
|
image: code.forgejo.org/forgejo/runner:3.3.0
|
||||||
container_name: forgejo_runner
|
container_name: forgejo_runner_daemon
|
||||||
links:
|
command: "forgejo-runner --config config.yml daemon"
|
||||||
- docker-in-docker
|
|
||||||
- forgejo
|
|
||||||
environment:
|
environment:
|
||||||
DOCKER_HOST: tcp://docker-in-docker:2375
|
DOCKER_HOST: tcp://docker-in-docker:2375
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/runner-data:/data
|
- ./volumes/runner-data:/data
|
||||||
user: 0:0
|
links:
|
||||||
|
- docker-in-docker
|
||||||
|
- forgejo
|
||||||
|
depends_on:
|
||||||
|
runner-register:
|
||||||
|
condition: service_completed_successfully
|
||||||
|
|
||||||
|
# runner-register needs only to run at first startup
|
||||||
|
runner-register:
|
||||||
|
image: code.forgejo.org/forgejo/runner:3.3.0
|
||||||
|
container_name: forgejo_runner
|
||||||
command: >-
|
command: >-
|
||||||
bash -ec '
|
bash -ec '
|
||||||
while : ; do
|
while : ; do
|
||||||
|
@ -64,18 +73,11 @@ services:
|
||||||
sed -i -e "s|labels: \[\]|labels: \[\"docker:docker://alpine:3.18\"\]|" config.yml ;
|
sed -i -e "s|labels: \[\]|labels: \[\"docker:docker://alpine:3.18\"\]|" config.yml ;
|
||||||
chown -R 1000:1000 /data
|
chown -R 1000:1000 /data
|
||||||
'
|
'
|
||||||
|
environment:
|
||||||
runner-daemon:
|
DOCKER_HOST: tcp://docker-in-docker:2375
|
||||||
image: code.forgejo.org/forgejo/runner:3.3.0
|
volumes:
|
||||||
container_name: forgejo_runner_daemon
|
- ./volumes/runner-data:/data
|
||||||
|
user: 0:0
|
||||||
links:
|
links:
|
||||||
- docker-in-docker
|
- docker-in-docker
|
||||||
- forgejo
|
- forgejo
|
||||||
environment:
|
|
||||||
DOCKER_HOST: tcp://docker-in-docker:2375
|
|
||||||
depends_on:
|
|
||||||
runner-register:
|
|
||||||
condition: service_completed_successfully
|
|
||||||
volumes:
|
|
||||||
- ./volumes/runner-data:/data
|
|
||||||
command: "forgejo-runner --config config.yml daemon"
|
|
||||||
|
|
|
@ -3,26 +3,26 @@ services:
|
||||||
homeassistant:
|
homeassistant:
|
||||||
image: ghcr.io/home-assistant/home-assistant:stable
|
image: ghcr.io/home-assistant/home-assistant:stable
|
||||||
container_name: homeassistant
|
container_name: homeassistant
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Berlin
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/homeassistant/config:/config
|
- ./volumes/homeassistant/config:/config
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
environment:
|
|
||||||
- TZ=Europe/Berlin
|
|
||||||
network_mode: host
|
network_mode: host
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
zigbee2mqtt:
|
zigbee2mqtt:
|
||||||
image: koenkk/zigbee2mqtt
|
image: koenkk/zigbee2mqtt
|
||||||
container_name: zigbee2mqtt
|
container_name: zigbee2mqtt
|
||||||
group_add:
|
environment:
|
||||||
- dialout
|
- TZ=Europe/Berlin
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:38080:8080"
|
- "127.0.0.1:38080:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/zigbee2mqtt/data:/app/data
|
- ./volumes/zigbee2mqtt/data:/app/data
|
||||||
- /run/udev:/run/udev:ro
|
- /run/udev:/run/udev:ro
|
||||||
environment:
|
group_add:
|
||||||
- TZ=Europe/Berlin
|
- dialout
|
||||||
devices:
|
devices:
|
||||||
# Make sure this matched your adapter location
|
# Make sure this matched your adapter location
|
||||||
- /dev/ttyACM0:/dev/ttyACM0
|
- /dev/ttyACM0:/dev/ttyACM0
|
||||||
|
@ -32,12 +32,12 @@ services:
|
||||||
image: eclipse-mosquitto:2.0
|
image: eclipse-mosquitto:2.0
|
||||||
container_name: mqtt
|
container_name: mqtt
|
||||||
command: "mosquitto -c /mosquitto-no-auth.conf"
|
command: "mosquitto -c /mosquitto-no-auth.conf"
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Berlin
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:1883:1883"
|
- "127.0.0.1:1883:1883"
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/mosquitto/conf:/mosquitto/conf
|
- ./volumes/mosquitto/conf:/mosquitto/conf
|
||||||
- ./volumes/mosquitto/data:/mosquitto/data
|
- ./volumes/mosquitto/data:/mosquitto/data
|
||||||
- ./volumes/mosquitto/logs:/mosquitto/log
|
- ./volumes/mosquitto/logs:/mosquitto/log
|
||||||
environment:
|
|
||||||
- TZ=Europe/Berlin
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
---
|
---
|
||||||
services:
|
services:
|
||||||
ntfy:
|
ntfy:
|
||||||
# https://docs.ntfy.sh/install/#docker
|
|
||||||
image: binwiederhier/ntfy
|
image: binwiederhier/ntfy
|
||||||
container_name: ntfy
|
container_name: ntfy
|
||||||
command:
|
command:
|
||||||
- serve
|
- serve
|
||||||
environment:
|
environment:
|
||||||
TZ: Europe/Berlin # optional: set desired timezone
|
TZ: Europe/Berlin
|
||||||
# user: UID:GID # optional: replace with your own user/group or uid/gid
|
# user: UID:GID # optional: replace with your own user/group or uid/gid
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/cache:/var/cache/ntfy
|
- ./volumes/cache:/var/cache/ntfy
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
# APP_STACK
|
||||||
|
|
||||||
|
- [APP\_STACK](#app_stack)
|
||||||
|
- [Directory structure](#directory-structure)
|
||||||
|
- [Settings](#settings)
|
||||||
|
|
||||||
|
|
||||||
|
## Directory structure
|
||||||
|
```
|
||||||
|
/opt/docker/app_stack
|
||||||
|
.
|
||||||
|
```
|
||||||
|
|
||||||
|
## Settings
|
|
@ -1,5 +1,4 @@
|
||||||
---
|
---
|
||||||
name: app_stack
|
|
||||||
services:
|
services:
|
||||||
foo:
|
foo:
|
||||||
image:
|
image:
|
||||||
|
@ -10,6 +9,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
volumes:
|
volumes:
|
||||||
depends_on:
|
depends_on:
|
||||||
|
healthcheck:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
bar:
|
bar:
|
||||||
|
|
|
@ -3,10 +3,6 @@ services:
|
||||||
vaultwarden:
|
vaultwarden:
|
||||||
image: vaultwarden/server:latest
|
image: vaultwarden/server:latest
|
||||||
container_name: vaultwarden
|
container_name: vaultwarden
|
||||||
ports:
|
|
||||||
- "127.0.0.1:11080:80"
|
|
||||||
volumes:
|
|
||||||
- ./volumes/data:/data
|
|
||||||
environment:
|
environment:
|
||||||
SIGNUPS_ALLOWED: 'false' # set to false to disable signups
|
SIGNUPS_ALLOWED: 'false' # set to false to disable signups
|
||||||
INVITATIONS_ALLOWED: 'false' # set to false to disable invitations
|
INVITATIONS_ALLOWED: 'false' # set to false to disable invitations
|
||||||
|
@ -17,4 +13,8 @@ services:
|
||||||
ICON_SERVICE: 'internal'
|
ICON_SERVICE: 'internal'
|
||||||
DISABLE_ICON_DOWNLOAD: 'true'
|
DISABLE_ICON_DOWNLOAD: 'true'
|
||||||
# LOG_LEVEL: 'debug'
|
# LOG_LEVEL: 'debug'
|
||||||
|
volumes:
|
||||||
|
- ./volumes/data:/data
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:11080:80"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue