Skip to content

Instantly share code, notes, and snippets.

@YourFriendCaspian
Created March 28, 2019 18:02
Show Gist options
  • Save YourFriendCaspian/9f828013a25e960c07f1f48069c6fa75 to your computer and use it in GitHub Desktop.
Save YourFriendCaspian/9f828013a25e960c07f1f48069c6fa75 to your computer and use it in GitHub Desktop.
# Cleanup commands
# To stop compose.yml
# docker-compose -f ~/docker/docker-compose.yml down
# docker system prune && docker image prune && docker volume prune
#Run after adding each container
# docker-compose -f ~/docker/docker-compose.yml up -d
version: "3.6"
services:
#-----------------------------------------------------------
# portainer
#-----------------------------------------------------------
portainer:
image: portainer/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
- /opt/portainer/data:/data
- /opt/shared:/shared
environment:
- TZ=America/New_York
#-----------------------------------------------------------
# mosquitto
#-----------------------------------------------------------
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto
user: "1000:1000"
ports:
- 1883:1883
volumes:
- /etc/localtime:/etc/localtime:ro
- /opt/mosquitto:/mosquitto/config:ro
- /opt/mosquitto:/mosquitto/data
restart: on-failure
#-----------------------------------------------------------
# NextCloud
#-----------------------------------------------------------
nextcloud:
container_name: nextcloud
hostname: cloud
restart: always
image: ownyourbits/nextcloudpi-armhf
volumes:
- /opt/nextcloud:/config
- /opt/shared_data:/data
- /opt/shared:/shared
ports:
- 443:443
- 80:80
- 4443:4443
environment:
- PUID=1000
- PGID=999
#-----------------------------------------------------------
# Watchtower
#-----------------------------------------------------------
watchtower:
container_name: watchtower
restart: always
image: webhippie/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --schedule "0 0 23 * * SUN" --cleanup
#-----------------------------------------------------------
# influxdb
#-----------------------------------------------------------
influxdb:
container_name: influxdb
image: influxdb
ports:
- 8086:8086
volumes:
- /opt/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro
- /opt/influxdb:/var/lib/influxdb
restart: on-failure
restart: on-failure
healthcheck:
test: ["CMD", "curl", "-sI", "http://127.0.0.1:8086/ping"]
interval: 30s
timeout: 1s
retries: 24
#-----------------------------------------------------------
# organizr
#-----------------------------------------------------------
organizr:
container_name: organizr
image: linuxserver/organizr
ports:
- 80:80
- 443:443
volumes:
- /opt/organizr:/config:rw
- etc/letsencrypt:/etc/letsencrypt:ro
environment:
- PGID=1000
- PUID=999
restart: on-failure
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1"]
interval: 30s
timeout: 10s
retries: 5
#-----------------------------------------------------------
# hassio
#-----------------------------------------------------------
homeassistant:
container_name: homeassistant
restart: on-failure
image: homeassistant/odroid-c2-homeassistant
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
- /dev/ttyUSB1:/dev/ttyUSB1
- /dev/ttyACM0:/dev/ttyACM0
- /dev/ttyMySensorsGateway:/dev/ttyMySensorsGateway
volumes:
- /opt/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
- /opt/etc/letsencrypt:/etc/letsencrypt:ro
- /opt/shared:/shared
ports:
- 8123:8123
privileged: true
environment:
- PUID=1000
- PGID=999
- TZ=America/New_York
depends_on:
mosquitto:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8123"]
interval: 30s
timeout: 10s
retries: 6
#-----------------------------------------------------------
# phpmyadmin
#-----------------------------------------------------------
phpmyadmin:
hostname: phpmyadmin
container_name: phpmyadmin
image: ebspace/aarch64-phpmyadmin
restart: always
links:
- mysql_db_server:db
ports:
- 8080:80
environment:
- PMA_HOST=dbhost
- MYSQL_ROOT_PASSWORD=MySql4242
#-----------------------------------------------------------
# mariadb
#-----------------------------------------------------------
mariadb:
image: "linuxserver/mariadb"
container_name: "mariadb"
hostname: mariadb
volumes:
- /opt/mariadb:/config
ports:
- target: 3306
published: 3306
protocol: tcp
mode: host
restart: always
environment:
- MYSQL_ROOT_PASSWORD=MySql4242
- PUID=1000
- PGID=999
- TZ=America/New_York
#-----------------------------------------------------------
# mylar
#-----------------------------------------------------------
mylar:
image: linuxserver/mylar
container_name: mylar
environment:
- PUID=1000
- PGID=999
volumes:
- /opt/mylar:/config
- /media/Cloud_Storage/Documents/Graphic_Novels:/comics
- /media/Cloud_Storage/Documents/downloads:/downloads
ports:
- 8090:8090
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment