remove tailscale
This commit is contained in:
parent
e6d2c151c6
commit
af5deec325
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Debuggy
|
- name: Debuggy
|
||||||
debug:
|
ansible.builtin.debug:
|
||||||
msg: "our_published_port={{ our_published_port }}"
|
msg: "our_published_port={{ our_published_port }}"
|
||||||
|
|
||||||
- name: Configure firewall
|
- name: Configure firewall
|
||||||
|
@ -1,12 +1,18 @@
|
|||||||
{% set sites = {
|
{% set sites = {
|
||||||
'future.porn': our_published_port,
|
'future.porn': our_published_port,
|
||||||
'pgadmin.sbtp.xyz': 9095,
|
'pgadmin.sbtp.xyz': pgadmin_published_port,
|
||||||
'rssapp.sbtp.xyz': 9096
|
'rssapp.sbtp.xyz': rssapp_published_port
|
||||||
} %}
|
} %}
|
||||||
|
|
||||||
{% for site, port in sites.items() %}
|
{% for site, port in sites.items() %}
|
||||||
{{ site }} {
|
{{ site }} {
|
||||||
|
|
||||||
|
{% if site == 'pgadmin.sbtp.xyz' %}
|
||||||
|
basicauth {
|
||||||
|
{{ pgadmin_basicauth_username }} {{ pgadmin_basicauth_password }}
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# Define the upstream servers (docker swarm nodes) for load balancing
|
# Define the upstream servers (docker swarm nodes) for load balancing
|
||||||
reverse_proxy {% for host in groups['swarm'] %}{{ hostvars[host]['internal_ip'] }}:{{ port }} {% endfor %} {
|
reverse_proxy {% for host in groups['swarm'] %}{{ hostvars[host]['internal_ip'] }}:{{ port }} {% endfor %} {
|
||||||
health_uri /health
|
health_uri /health
|
||||||
|
@ -25,3 +25,7 @@ kubo_version: v0.34.1
|
|||||||
|
|
||||||
our_server_port: 3000
|
our_server_port: 3000
|
||||||
our_published_port: 8086
|
our_published_port: 8086
|
||||||
|
pgadmin_published_port: 9095
|
||||||
|
rssapp_published_port: 9096
|
||||||
|
pgadmin_basicauth_username: "{{ lookup('dotenv', 'PGADMIN_BASICAUTH_USERNAME', file='../../../../.env.production') }}"
|
||||||
|
pgadmin_basicauth_password: "{{ lookup('dotenv', 'PGADMIN_BASICAUTH_PASSWORD', file='../../../../.env.production') }}"
|
||||||
|
@ -66,9 +66,6 @@ services:
|
|||||||
|
|
||||||
pgadmin:
|
pgadmin:
|
||||||
image: dpage/pgadmin4:latest
|
image: dpage/pgadmin4:latest
|
||||||
network_mode: service:tailscale-pgadmin
|
|
||||||
depends_on:
|
|
||||||
- tailscale-pgadmin
|
|
||||||
environment:
|
environment:
|
||||||
PGADMIN_LISTEN_ADDRESS: "0.0.0.0"
|
PGADMIN_LISTEN_ADDRESS: "0.0.0.0"
|
||||||
PGADMIN_LISTEN_PORT: 5050
|
PGADMIN_LISTEN_PORT: 5050
|
||||||
@ -77,23 +74,11 @@ services:
|
|||||||
test: ["CMD", "nc", "-z", "127.0.0.1", "5050"]
|
test: ["CMD", "nc", "-z", "127.0.0.1", "5050"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
|
ports:
|
||||||
tailscale-pgadmin:
|
- target: 5050
|
||||||
image: tailscale/tailscale:latest
|
published: 9095
|
||||||
hostname: pgadmin
|
protocol: tcp
|
||||||
environment:
|
mode: ingress
|
||||||
TS_EXTRA_ARGS: "--stateful-filtering=false --advertise-tags=tag:container --reset"
|
|
||||||
TS_SERVE_CONFIG: /config/pgadmin.json
|
|
||||||
TS_STATE_DIR: /var/lib/tailscale
|
|
||||||
TS_USERSPACE: "false"
|
|
||||||
volumes:
|
|
||||||
- /mnt/vfs/futureporn/tailscale/state:/var/lib/tailscale
|
|
||||||
- /mnt/vfs/futureporn/tailscale/config:/config
|
|
||||||
devices:
|
|
||||||
- /dev/net/tun:/dev/net/tun
|
|
||||||
cap_add:
|
|
||||||
- net_admin
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user