mirror of
https://codeberg.org/pluja/kycnot.me
synced 2024-10-01 01:05:59 -04:00
update compose files, use external tor, remove unused containers
This commit is contained in:
parent
2c627ead54
commit
348d17aa0b
@ -1,4 +1,3 @@
|
|||||||
version: "3.9"
|
|
||||||
name: "kycnotme_v2024"
|
name: "kycnotme_v2024"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
version: "3.9"
|
|
||||||
name: "kycnotme_v2024"
|
name: "kycnotme_v2024"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
@ -11,24 +10,19 @@ volumes:
|
|||||||
pb_migrations: {}
|
pb_migrations: {}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
crawler:
|
|
||||||
container_name: kycnotme-crawler
|
|
||||||
build: ./crawler
|
|
||||||
|
|
||||||
website:
|
website:
|
||||||
container_name: kycnotme-website
|
container_name: kycnotme-website
|
||||||
build: ./src
|
build: ./src
|
||||||
networks:
|
networks:
|
||||||
caddy:
|
caddy:
|
||||||
aliases:
|
|
||||||
- "website"
|
|
||||||
default:
|
default:
|
||||||
aliases:
|
|
||||||
- "website"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./src/frontend/templates:/app/frontend/templates
|
- ./src/frontend/templates:/app/frontend/templates
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
depends_on:
|
||||||
|
pocketbase:
|
||||||
|
condition: service_healthy
|
||||||
labels:
|
labels:
|
||||||
caddy: "${WEB_DOMAIN}"
|
caddy: "${WEB_DOMAIN}"
|
||||||
caddy.reverse_proxy: "{{upstreams 4488}}"
|
caddy.reverse_proxy: "{{upstreams 4488}}"
|
||||||
@ -40,7 +34,7 @@ services:
|
|||||||
pocketbase:
|
pocketbase:
|
||||||
image: spectado/pocketbase:latest
|
image: spectado/pocketbase:latest
|
||||||
container_name: kycnotme-pocketbase
|
container_name: kycnotme-pocketbase
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- pb_data:/pb_data
|
- pb_data:/pb_data
|
||||||
- pb_public:/pb_public
|
- pb_public:/pb_public
|
||||||
@ -48,39 +42,45 @@ services:
|
|||||||
caddy: {}
|
caddy: {}
|
||||||
default:
|
default:
|
||||||
aliases:
|
aliases:
|
||||||
- "pocketbase"
|
|
||||||
- "database"
|
- "database"
|
||||||
labels:
|
labels:
|
||||||
caddy: "${PB_DOMAIN}"
|
caddy: "${PB_DOMAIN}"
|
||||||
caddy.reverse_proxy: "{{upstreams 80}}"
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||||
caddy.request_body.max_size: 10MB
|
caddy.request_body.max_size: 20MB
|
||||||
|
caddy.header.X-Robots-Tag: "noindex"
|
||||||
|
caddy.header.Strict-Transport-Security: "max-age=31536000; includeSubdomains; preload;"
|
||||||
healthcheck: #optional (recommended) since v0.10.0
|
healthcheck: #optional (recommended) since v0.10.0
|
||||||
test: wget --no-verbose --tries=1 --spider http://localhost:80/api/health || exit 1
|
test: wget --no-verbose --tries=1 --spider http://localhost:80/api/health || exit 1
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
|
|
||||||
tor:
|
tor:
|
||||||
build:
|
image: goldy/tor-hidden-service:latest
|
||||||
context: ./docker/tor/
|
|
||||||
profiles: ["tor"]
|
profiles: ["tor"]
|
||||||
container_name: kycnotme-tor
|
container_name: kycnotme-tor
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
caddy: {}
|
caddy: {}
|
||||||
default: {}
|
default: {}
|
||||||
|
links:
|
||||||
|
- website
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker/tor/data:/var/lib/tor
|
- ./docker/tor/hidden_service:/var/lib/tor/hidden_service
|
||||||
labels:
|
environment:
|
||||||
caddy: ${ONION_ADDRESS}
|
SERVICE1_TOR_SERVICE_HOSTS: 80:website:4488
|
||||||
caddy.reverse_proxy: "website:4488"
|
SERVICE1_TOR_SERVICE_VERSION: '3'
|
||||||
|
#labels:
|
||||||
|
# caddy: ${ONION_ADDRESS}
|
||||||
|
# caddy.reverse_proxy: "website:4488"
|
||||||
|
|
||||||
i2pd:
|
i2pd:
|
||||||
build:
|
build:
|
||||||
context: ./docker/i2p/
|
context: ./docker/i2p/
|
||||||
profiles: ["i2p"]
|
profiles: ["i2p"]
|
||||||
container_name: kycnotme-i2p
|
container_name: kycnotme-i2p
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
caddy: {}
|
caddy: {}
|
||||||
default: {}
|
default: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user