121 lines
2.8 KiB
YAML
121 lines
2.8 KiB
YAML
services:
|
|
mariadb:
|
|
container_name: mariadb
|
|
image: mariadb:11
|
|
restart: always
|
|
environment:
|
|
- MARIADB_ROOT_PASSWORD=Ant3na2021
|
|
- TZ=Europe/Madrid
|
|
ports:
|
|
- "3307:3306"
|
|
volumes:
|
|
- mariadb_data:/var/lib/mysql
|
|
- ./mariadb/init:/docker-entrypoint-initdb.d:ro
|
|
- ./mariadb/conf.d/replication.cnf:/etc/mysql/mariadb.conf.d/99-replication.cnf:ro
|
|
networks:
|
|
- teknes-net
|
|
|
|
phpmyadmin:
|
|
container_name: phpmyadmin
|
|
image: phpmyadmin:latest
|
|
restart: always
|
|
# ports:
|
|
# - "80:80"
|
|
environment:
|
|
- PMA_HOST=mariadb
|
|
- PMA_PORT=3306
|
|
- PMA_ABSOLUTE_URI=http://localhost/phpmyadmin/
|
|
- TZ=Europe/Madrid
|
|
depends_on:
|
|
- mariadb
|
|
networks:
|
|
- teknes-net
|
|
|
|
nginx:
|
|
container_name: nginx
|
|
image: nginx:alpine
|
|
restart: always
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
|
depends_on:
|
|
- phpmyadmin
|
|
networks:
|
|
- teknes-net
|
|
|
|
app-servidor-campo:
|
|
container_name: app-servidor-campo
|
|
build: ./app-servidor-campo
|
|
init: true
|
|
restart: on-failure
|
|
ports:
|
|
- "5566:5566"
|
|
volumes:
|
|
- ./app-servidor-campo/app:/home/teknes/ServidorCampo
|
|
environment:
|
|
- TZ=Europe/Madrid
|
|
depends_on:
|
|
- mariadb
|
|
networks:
|
|
- teknes-net
|
|
|
|
# mqtt:
|
|
# container_name: mqtt
|
|
# image: eclipse-mosquitto
|
|
# restart: unless-stopped
|
|
# network_mode: host
|
|
# volumes:
|
|
# - ./homeassistant/config_mqtt:/mosquitto/config
|
|
# - ./homeassistant/data_mqtt:/mosquitto/data
|
|
# - ./homeassistant/log_mqtt:/mosquitto/log
|
|
# environment:
|
|
# - TZ=Europe/Madrid
|
|
|
|
homeassistant:
|
|
container_name: homeassistant
|
|
image: ghcr.io/home-assistant/home-assistant:stable
|
|
restart: always
|
|
privileged: true
|
|
network_mode: host
|
|
volumes:
|
|
- ./homeassistant/config_ha:/config
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /run/dbus:/run/dbus:ro
|
|
- /opt/shutdown-signal:/shutdown-signal # Fichero de señal de apagado
|
|
environment:
|
|
- TZ=Europe/Madrid
|
|
depends_on:
|
|
# - mqtt
|
|
- file-editor
|
|
|
|
file-editor:
|
|
container_name: file-editor
|
|
image: causticlab/hass-configurator-docker:latest
|
|
restart: unless-stopped
|
|
network_mode: host
|
|
volumes:
|
|
- ./homeassistant/config_file-editor:/config
|
|
- ./homeassistant/config_ha:/hass-config
|
|
environment:
|
|
- TZ=Europe/Madrid
|
|
|
|
# node-red:
|
|
# container_name: node-red
|
|
# image: nodered/node-red:latest
|
|
# restart: unless-stopped
|
|
# network_mode: host
|
|
# volumes:
|
|
# - ./homeassistant/data_nodered:/data
|
|
# environment:
|
|
# - TZ=Europe/Madrid
|
|
|
|
volumes:
|
|
mariadb_data:
|
|
|
|
networks:
|
|
teknes-net:
|
|
driver: bridge
|