mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-09 06:07:56 -05:00
update compose
This commit is contained in:
parent
86d6b24c0a
commit
9f8d8e83d6
16
docker-compose.dev.yml
Normal file
16
docker-compose.dev.yml
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user