Last active
October 15, 2024 12:26
-
-
Save ngerakines/363783065dbb91524025b3fc5d232091 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
storage file_system ./caddy/ | |
debug | |
pki { | |
ca pyroclastic { | |
name "Pyroclastic Cloud" | |
} | |
} | |
} | |
acme.pyroclastic.cloud { | |
tls { | |
issuer internal { | |
ca pyroclastic | |
} | |
} | |
acme_server { | |
ca pyroclastic | |
} | |
} | |
plc.pyroclastic.cloud { | |
tls { | |
issuer internal { | |
ca pyroclastic | |
} | |
} | |
reverse_proxy http://127.0.0.1:3000 | |
} | |
smokesignal.pyroclastic.cloud { | |
tls { | |
issuer internal { | |
ca pyroclastic | |
} | |
} | |
handle /static* { | |
root ../ | |
file_server | |
} | |
handle /favicon.ico { | |
root ../static/ | |
file_server | |
} | |
handle { | |
reverse_proxy http://127.0.0.1:8080 | |
} | |
} | |
*.pyroclastic.cloud, pds.pyroclastic.cloud { | |
tls { | |
issuer internal { | |
ca pyroclastic | |
} | |
} | |
reverse_proxy http://127.0.0.1:3001 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
db: | |
image: postgres:14.4-alpine | |
network_mode: "host" | |
environment: | |
- POSTGRES_USER=pg | |
- POSTGRES_PASSWORD=password | |
ports: | |
- '5433:5432' | |
healthcheck: | |
test: 'pg_isready -U pg' | |
interval: 500ms | |
timeout: 10s | |
retries: 20 | |
volumes: | |
- plc_db:/var/lib/postgresql/data | |
- ./postgres/init/:/docker-entrypoint-initdb.d/ | |
plc: | |
depends_on: [db] | |
image: docker.io/library/plcjs | |
network_mode: "host" | |
environment: | |
- DATABASE_URL=postgres://pg:password@db/plc | |
- DEBUG_MODE=1 | |
- LOG_ENABLED=true | |
- LOG_LEVEL=debug | |
- DB_CREDS_JSON={"username":"pg","password":"password","host":"localhost","port":"5432","database":"plc"} | |
- DB_MIGRATE_CREDS_JSON={"username":"pg","password":"password","host":"localhost","port":"5432","database":"plc"} | |
- ENABLE_MIGRATIONS=true | |
- LOG_DESTINATION=1 | |
ports: | |
- '2582:2582' | |
volumes: | |
plc_db: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- plc | |
CREATE DATABASE plc; | |
GRANT ALL PRIVILEGES ON DATABASE plc TO pg; | |
-- bgs | |
CREATE DATABASE bgs; | |
CREATE DATABASE carstore; | |
GRANT ALL PRIVILEGES ON DATABASE bgs TO pg; | |
GRANT ALL PRIVILEGES ON DATABASE carstore TO pg; | |
-- bsky(appview) | |
CREATE DATABASE bsky; | |
GRANT ALL PRIVILEGES ON DATABASE bsky TO pg; | |
-- ozone(moderation) | |
CREATE DATABASE mod; | |
GRANT ALL PRIVILEGES ON DATABASE mod TO pg; | |
-- pds | |
CREATE DATABASE pds; | |
GRANT ALL PRIVILEGES ON DATABASE pds TO pg; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment