Created
March 27, 2019 17:49
-
-
Save YourFriendCaspian/452e791be6541df84721311a6491a9bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cleanup commands | |
# To stop compose.yml | |
# docker-compose -f ~/docker/docker-compose.yml down | |
# docker system prune && docker image prune && docker volume prune | |
version: "3.6" | |
services: | |
#----------------------------------------------------------- | |
# portainer | |
#----------------------------------------------------------- | |
portainer: | |
image: portainer/portainer | |
container_name: portainer | |
restart: no | |
command: -H unix:///var/run/docker.sock | |
ports: | |
- 9000:9000 | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /opt/portainer/data:/data | |
- /home/yfc/docker/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 | |
#----------------------------------------------------------- | |
# 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 | |
#----------------------------------------------------------- | |
# 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 | |
#----------------------------------------------------------- | |
# 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 | |
#----------------------------------------------------------- | |
# 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 | |
#----------------------------------------------------------- | |
# 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 | |
- /etc/letsencrypt:/etc/letsencrypt:ro | |
- /home/yfc/docker/shared:/shared | |
ports: | |
- 8123:8123 | |
privileged: true | |
environment: | |
- PUID=1000 | |
- PGID=999 | |
- TZ=America/New_York | |
#----------------------------------------------------------- | |
# NextCloud | |
#----------------------------------------------------------- | |
nextcloud: | |
container_name: nextcloud | |
hostname: cloud | |
restart: always | |
image: ownyourbits/nextcloudpi-armhf | |
volumes: | |
- /opt/nextcloud:/config | |
- /home/yfc/docker/shared_data:/data | |
- /home/yfc/docker/shared:/shared | |
ports: | |
- 443:443 | |
- 80:80 | |
- 4443:4443 | |
environment: | |
- PUID=1000 | |
- PGID=999 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment