Added Zoneminder to docker for aya01
Changed naming for docker network so there is no compose_compose_net -> compose_net now Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>pull/1/head
parent
ca1b586ee5
commit
f12dd2352c
|
@ -8,10 +8,11 @@
|
|||
loop:
|
||||
- "{{ docker_dir }}/zm/"
|
||||
|
||||
- name: Shut down docker
|
||||
shell:
|
||||
cmd: "docker compose down --remove-orphans"
|
||||
chdir: "{{ docker_compose_dir }}"
|
||||
# Todo, check if docker compose is running
|
||||
# - name: Shut down docker
|
||||
# shell:
|
||||
# cmd: "docker compose down --remove-orphans"
|
||||
# chdir: "{{ docker_compose_dir }}"
|
||||
|
||||
- name: Copy the compose file
|
||||
template:
|
||||
|
|
|
@ -45,10 +45,11 @@
|
|||
- "traefik/var-log/access.log"
|
||||
- "traefik/var-log/traefik.log"
|
||||
|
||||
- name: Shut down docker
|
||||
shell:
|
||||
cmd: "docker compose down --remove-orphans"
|
||||
chdir: "{{ docker_compose_dir }}"
|
||||
# Todo, check if docker compose is running
|
||||
# - name: Shut down docker
|
||||
# shell:
|
||||
# cmd: "docker compose down --remove-orphans"
|
||||
# chdir: "{{ docker_compose_dir }}"
|
||||
|
||||
- name: Copy the compose file
|
||||
template:
|
||||
|
|
|
@ -13,6 +13,9 @@ services:
|
|||
- "MYSQL_ROOT_PASSWORD={{ vault_mysql_root_password }}"
|
||||
- "MYSQL_USER={{ mysql_user }}"
|
||||
- "MYSQL_PASSWORD={{ vault_mysql_user_password }}"
|
||||
- "MAX_LOG_SIZE_BYTES=1000000"
|
||||
- "MAX_LOG_NUMBER=20"
|
||||
- "TZ=Europe/Berlin"
|
||||
|
||||
zoneminder:
|
||||
image: ghcr.io/zoneminder-containers/zoneminder-base:latest
|
||||
|
@ -24,7 +27,7 @@ services:
|
|||
- 80:80
|
||||
networks:
|
||||
- zoneminder
|
||||
- compose_net
|
||||
- net
|
||||
volumes:
|
||||
- "/etc/localtime:/etc/localtime:ro"
|
||||
- "{{ docker_dir }}/zm/data:/data"
|
||||
|
@ -35,12 +38,17 @@ services:
|
|||
tmpfs:
|
||||
size: 1000000000
|
||||
environment:
|
||||
- MAX_LOG_SIZE_BYTES=1000000
|
||||
- MAX_LOG_NUMBER=20
|
||||
- "MYSQL_DATABASE=zm"
|
||||
- "MYSQL_ROOT_PASSWORD={{ vault_mysql_root_password }}"
|
||||
- "MYSQL_USER={{ mysql_user }}"
|
||||
- "MYSQL_PASSWORD={{ vault_mysql_user_password }}"
|
||||
- "MAX_LOG_SIZE_BYTES=1000000"
|
||||
- "MAX_LOG_NUMBER=20"
|
||||
- "TZ=Europe/Berlin"
|
||||
|
||||
networks:
|
||||
zoneminder:
|
||||
compose_net:
|
||||
net:
|
||||
driver: bridge
|
||||
ipam:
|
||||
driver: default
|
||||
|
|
|
@ -5,7 +5,7 @@ services:
|
|||
image: traefik:latest
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
compose_net: {}
|
||||
net: {}
|
||||
volumes:
|
||||
- "/etc/localtime:/etc/localtime:ro"
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
|
@ -25,7 +25,7 @@ services:
|
|||
image: "ghcr.io/qdm12/ddns-updater"
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
compose_net: {}
|
||||
net: {}
|
||||
volumes:
|
||||
- "{{ docker_dir }}/ddns-updater/data/:/updater/data/"
|
||||
ports:
|
||||
|
@ -49,7 +49,7 @@ services:
|
|||
image: pihole/pihole:latest
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
compose_net: {}
|
||||
net: {}
|
||||
ports:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
|
@ -77,7 +77,7 @@ services:
|
|||
- "traefik.http.services.pihole.loadbalancer.server.port=8089"
|
||||
|
||||
networks:
|
||||
compose_net:
|
||||
net:
|
||||
driver: bridge
|
||||
ipam:
|
||||
driver: default
|
||||
|
|
Loading…
Reference in New Issue