update compose

This commit is contained in:
pluja 2024-02-18 17:16:40 +01:00
parent 86d6b24c0a
commit 9f8d8e83d6
2 changed files with 41 additions and 14 deletions

16
docker-compose.dev.yml Normal file
View File

@ -0,0 +1,16 @@
version: "3.9"
name: "kycnotme"
services:
website:
labels:
caddy: "kycnotme.localhost"
caddy.reverse_proxy: "{{upstreams 4488}}"
pocketbase:
labels:
caddy: "pocketbase.localhost"
caddy.reverse_proxy: "{{upstreams 8090}}"
volumes:
- ./pocketbase/data:/pb_data
- ./pocketbase/public:/pb_public

View File

@ -1,38 +1,49 @@
version: "3.9"
name: "kycnotme"
networks:
caddy:
external: true
volumes:
pb_data: {}
pb_public: {}
services:
crawler:
container_name: kycnotme-crawler
build: ./crawler
ports:
- "127.0.0.1:3011:3011"
website:
container_name: kycnotme-website
build: ./src
networks:
caddy: {}
default: {}
env_file:
- .env
labels:
caddy: "${WEB_DOMAIN}"
caddy.reverse_proxy: "{{upstreams 4488}}"
pocketbase:
image: ghcr.io/muchobien/pocketbase:latest
container_name: kycnotme-pocketbase
restart: unless-stopped
# command:
# - --encryptionEnv #optional
# - ENCRYPTION #optional
# environment:
# ENCRYPTION: jfeofkanwofua923 #optional
ports:
- "127.0.0.1:8022:8090"
volumes:
- ./pocketbase/data:/pb_data
- ./pocketbase/public:/pb_public #optional
- pb_data:/pb_data
- pb_public:/pb_public
networks:
caddy: {}
default: {}
default:
aliases:
- "pocketbase"
- "database"
labels:
caddy: "pocketbase.localhost"
caddy: "${PB_DOMAIN}"
caddy.reverse_proxy: "{{upstreams 8090}}"
healthcheck: #optional (recommended) since v0.10.0
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
interval: 5s
timeout: 5s
retries: 5
retries: 5