mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-09 14:09:30 -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,35 +1,46 @@
|
|||||||
version: "3.9"
|
version: "3.9"
|
||||||
|
name: "kycnotme"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
caddy:
|
caddy:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
pb_data: {}
|
||||||
|
pb_public: {}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
crawler:
|
crawler:
|
||||||
container_name: kycnotme-crawler
|
container_name: kycnotme-crawler
|
||||||
build: ./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:
|
pocketbase:
|
||||||
image: ghcr.io/muchobien/pocketbase:latest
|
image: ghcr.io/muchobien/pocketbase:latest
|
||||||
container_name: kycnotme-pocketbase
|
container_name: kycnotme-pocketbase
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# command:
|
|
||||||
# - --encryptionEnv #optional
|
|
||||||
# - ENCRYPTION #optional
|
|
||||||
# environment:
|
|
||||||
# ENCRYPTION: jfeofkanwofua923 #optional
|
|
||||||
ports:
|
|
||||||
- "127.0.0.1:8022:8090"
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./pocketbase/data:/pb_data
|
- pb_data:/pb_data
|
||||||
- ./pocketbase/public:/pb_public #optional
|
- pb_public:/pb_public
|
||||||
networks:
|
networks:
|
||||||
caddy: {}
|
caddy: {}
|
||||||
default: {}
|
default:
|
||||||
|
aliases:
|
||||||
|
- "pocketbase"
|
||||||
|
- "database"
|
||||||
labels:
|
labels:
|
||||||
caddy: "pocketbase.localhost"
|
caddy: "${PB_DOMAIN}"
|
||||||
caddy.reverse_proxy: "{{upstreams 8090}}"
|
caddy.reverse_proxy: "{{upstreams 8090}}"
|
||||||
healthcheck: #optional (recommended) since v0.10.0
|
healthcheck: #optional (recommended) since v0.10.0
|
||||||
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
|
test: wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user