diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml new file mode 100644 index 0000000..b510305 --- /dev/null +++ b/docker-compose.dev.yml @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 5eea441..69cffa0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file + retries: 5