diff --git a/docker-compose-auto.yml b/docker-compose-auto.yml index 0bd3c1e..da81a82 100644 --- a/docker-compose-auto.yml +++ b/docker-compose-auto.yml @@ -40,27 +40,73 @@ # www - Y 443 443 - direct YES YES # nextcloud - Y 443 8000 80 proxy YES YES # jenkins - Y 443 8081 - proxy YES YES -# pihole - Y 443 8020 80 -# portainer - Y 443 8030 9000 need to add -# open-project - Y 443 8040 80 proxy NO -# cockpit - Y 443 8050 9092 proxy NO self-signed - broken (or visit with 8050) -# gitbucket - Y 443 8090 - proxy YES self-signed - broken (or visit with 8090 / 8091 - probably settting for the site-url) -# code-server - Y 443 8443 8443 proxy YES YES - lost the volume ? -# minecraft - N 443 25565 25565 - +# pihole - Y 443 8020 80 proxy YES YES +# portainer - Y 443 8030 9000 proxy YES YES +# open-project - Y 443 8040 80 proxy YES YES +# cockpit - Y 443 8050 9092 proxy YES YES +# gitbucket - Y 443 8090 - proxy YES YES +# code-server - Y 443 8443 8443 proxy YES YES +# minecraft - N 443 25565 25565 - YES + + +# +# Cockpit Instructions +# +# Requires the host being connected to have cockpit installed. +# +# First time set up of cockpit to connect to another host requires manually connecting a shell to the container +# and attempting to SSH to it to add the host fingerprint to the known hosts before can log in via the browser. +# + +# +# Code-Server Instructions +# +## Setup inside containers to have docker tools map docker socket to the host's socket +# +## First part is installing the docker CLI tools if not already installed: +#echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null +#sudo apt update +#sudo apt install -y ca-certificates curl +#sudo install -m 0755 -d /etc/apt/keyrings +#sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc +#sudo chmod a+r /etc/apt/keyrings/docker.asc +#sudo apt update +#sudo apt install -y docker-ce-cli +# +## This is where the group id is fixed up to match the host's +#DOCKER_GID=`ls -la /var/run/docker.sock | cut -d' ' -f4` +#USER=abc +#sudo groupadd docker +#sudo groupmod -g ${DOCKER_GID} docker +#sudo adduser ${USER} docker +#echo now restart the container +# + +# Password reminders: +# +# Portainer: admin : a.....W....... +# OpenProject: admin : a.....W....... +# CodeServer: password +# Cockpit: connect to 192.168.1.116 with server username and password +# NextCloud: root : W.......75; +# +# + services: - cockpit-ws: + cockpit: image: cockpit-ws:latest - container_name: cockpit-ws - hostname: cockpit.invertedlogic.ddns.net + container_name: cockpit + # hostname: cockpit.invertedlogic.ddns.net + hostname: cockpit.localdomain restart: always privileged: true volumes: # Authentication - - /etc/passwd:/etc/passwd:ro - - /etc/group:/etc/group:ro - - /etc/shadow:/etc/shadow:ro + # - /etc/passwd:/etc/passwd:ro + # - /etc/group:/etc/group:ro + # - /etc/shadow:/etc/shadow:ro # Docker access - /var/run/docker.sock:/var/run/docker.sock # Dummy home directories @@ -79,51 +125,61 @@ ports: - "8000:80" -# pihole: -# image: pihole/pihole:latest -# container_name: pihole -# hostname: pihole.localdomain -# restart: always -# environment: -# TZ: 'Australia/Brisbane' -# FTLCONF_webserver_api_password: 'killeres' -# # FTLCONF_dns_listeningMode: 'ALL' -# volumes: -# - /media/Data/Containers/PiHole:/etc/pihole -# ports: -# - "8020:80" -# # - "9443:443" -# # DNS: -# #- "53:53/tcp" -# #- "53:53/udp" -# # Uncomment the line below if you are using Pi-hole as your NTP server -# #- "123:123/udp" + pi-hole: + image: pihole/pihole:latest + container_name: pihole + hostname: pihole.localdomain + restart: always + environment: + TZ: 'Australia/Brisbane' + FTLCONF_webserver_api_password: 'killeres' + # FTLCONF_dns_listeningMode: 'ALL' + volumes: + - /media/Data/Containers/PiHole:/etc/pihole + ports: + - "8020:80" + # - "9443:443" + # DNS: + #- "53:53/tcp" + #- "53:53/udp" + # Uncomment the line below if you are using Pi-hole as your NTP server + #- "123:123/udp" portainer: - image: portainer/portainer-ce:latest - container_name: portainer-ce - hostname: portainer.localdomain + image: portainer/portainer-ce:alpine + container_name: portainer + # hostname: portainer.localdomain restart: always + # command: -H unix:///var/run/docker.sock --tlsskipverify volumes: # Authentication - - /etc/passwd:/etc/passwd:ro - - /etc/group:/etc/group:ro - - /etc/shadow:/etc/shadow:ro + # - /etc/passwd:/etc/passwd:ro + # - /etc/group:/etc/group:ro + # - /etc/shadow:/etc/shadow:ro # Docker access - /var/run/docker.sock:/var/run/docker.sock # Data - /media/Data/Containers/Portainer:/data + #environment: + # - VIRTUAL_HOST=portainer.invertedlogic.dnns.net + # - VIRTUAL_PORT=9000 ports: - "8030:9000" + # - "8030:8000" open-project: # image: openproject/community:latest - image: openproject/openproject:17 + image: openproject/openproject:10 container_name: open-project + hostname: openproject.invertedlogic.ddns.net restart: always volumes: - /media/Data/Containers/OpenProject/static:/var/openproject/assets - /media/Data/Containers/OpenProject/pgdata:/var/openproject/pgdata + # - /media/Data/Containers/OpenProject/pgdata/pg_hba.conf:/etc/postgresql/9.6/main/pg_hba.conf + environment: + - OPENPROJECT_HTTPS=true + - OPENPROJECT_HOST__NAME=openproject.invertedlogic.ddns.net ports: - "8040:80" @@ -134,14 +190,18 @@ environment: - PUID=1000 - PGID=1000 - - TZ=Etc/UTC + - TZ="Australia/Brisbane" - PASSWORD=password #optional - HASHED_PASSWORD= #optional - SUDO_PASSWORD=password #optional - SUDO_PASSWORD_HASH= #optional - PROXY_DOMAIN=code-server.localdomain #optional - DEFAULT_WORKSPACE=/config/workspace #optional + - DOCKER_MODS=linuxserver/modes:universal-docker volumes: + # Docker access + - /var/run/docker.sock:/var/run/docker.sock:ro + # Files - /media/Data/Containers/CodeServer/config:/config ports: - "8060:8443"