Fix container communication

This commit is contained in:
Sam A. 2022-12-28 18:24:27 +01:00
parent 1020c59c50
commit c6f0e1f701
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
6 changed files with 16 additions and 6 deletions

View file

@ -26,6 +26,10 @@
restart_policy: unless-stopped restart_policy: unless-stopped
networks: networks:
- name: services - name: services
ipv4_address: 172.16.0.2
published_ports:
- '80:80/tcp'
- '443:443/tcp'
volumes: volumes:
- "{{ services.caddy.volume }}/Caddyfile:/etc/caddy/Caddyfile:ro" - "{{ services.caddy.volume }}/Caddyfile:/etc/caddy/Caddyfile:ro"
- "{{ services.caddy.volume }}/config:/config:rw" - "{{ services.caddy.volume }}/config:/config:rw"

View file

@ -23,6 +23,8 @@
GID: '1000' GID: '1000'
networks: networks:
- name: services - name: services
aliases:
- emby
volumes: volumes:
- "{{ services.emby.volume }}/programdata:/config:rw" - "{{ services.emby.volume }}/programdata:/config:rw"
- "{{ services.emby.volume }}/tvshows:/mnt/share1:rw" - "{{ services.emby.volume }}/tvshows:/mnt/share1:rw"

View file

@ -12,6 +12,8 @@
restart_policy: unless-stopped restart_policy: unless-stopped
networks: networks:
- name: services - name: services
aliases:
- monerod
volumes: volumes:
- monerod-node-blockchain:/home/monero/.bitmonero:rw - monerod-node-blockchain:/home/monero/.bitmonero:rw
published_ports: published_ports:

View file

@ -75,8 +75,10 @@
PHP_MEMORY_LIMIT: 2G PHP_MEMORY_LIMIT: 2G
PHP_UPLOAD_LIMIT: 16G PHP_UPLOAD_LIMIT: 16G
networks: networks:
- default default:
- services services:
aliases:
- nextcloud
volumes: volumes:
- "{{ services.nextcloud.volume }}/app:/var/www/html:rw" - "{{ services.nextcloud.volume }}/app:/var/www/html:rw"
- "{{ services.nextcloud.volume }}/apache2/apache2.conf:/etc/apache2/apache2.conf:ro" - "{{ services.nextcloud.volume }}/apache2/apache2.conf:/etc/apache2/apache2.conf:ro"

View file

@ -14,7 +14,7 @@
restart_policy: unless-stopped restart_policy: unless-stopped
env: env:
SERVERURL: "{{ services.wireguard.domain }}" SERVERURL: "{{ services.wireguard.domain }}"
SERVERPORT: 51820 SERVERPORT: '51820'
PEERS: "{{ secrets.wireguard.peers }}" PEERS: "{{ secrets.wireguard.peers }}"
PEERDNS: auto PEERDNS: auto
TZ: "{{ timezone }}" TZ: "{{ timezone }}"

View file

@ -13,7 +13,7 @@
-Server -Server
} }
reverse_proxy nextcloud_app_1:80 reverse_proxy nextcloud:80
} }
{{ services.emby.domain }} { {{ services.emby.domain }} {
@ -24,7 +24,7 @@
-Server -Server
} }
reverse_proxy emby_app:8096 reverse_proxy emby:8096
} }
{{ services.monerod.domain }}:18089 { {{ services.monerod.domain }}:18089 {
@ -35,5 +35,5 @@
-Server -Server
} }
reverse_proxy monerod_node:18089 reverse_proxy monerod:18089
} }