Skip to content

Commit b8429c2

Browse files
committed
Add linux arm64 build
1 parent 6d3a3a8 commit b8429c2

3 files changed

Lines changed: 7 additions & 28 deletions

File tree

.env.example

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# PocketBase deploy API (set real values in .env or .cursor.env; do not commit secrets)
22
PB_BASE_URL=http://localhost:8090
33
SITE_DEPLOY_TOKEN=sk_deploy_xxxxxxxx
4-
# Optional: when using docker-compose with a published image (GHCR)
5-
# DOCKER_IMAGE=ghcr.io/transformable-app/transformable-container:latest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Example configs: [docs/DEPLOY.md](docs/DEPLOY.md#nginx-on-host).
8282
- **pocketbase/** — PocketBase binary and [pb_hooks](pocketbase/pb_hooks/) (deploy, rollback, revisions, delete hook).
8383
- **docs/** — [SCHEMA.md](docs/SCHEMA.md) (revisions collection + singleton), [DEPLOY.md](docs/DEPLOY.md) (host paths, Docker, Nginx).
8484
- **skills.md** — API map for Cursor (placeholders `{{PB_BASE_URL}}`, `{{SITE_DEPLOY_TOKEN}}`).
85-
- **docker-compose.yml** — Production compose: use published image (set `DOCKER_IMAGE` in `.env`) or build locally; see comments in file.
85+
- **docker-compose.yml** — Production compose
8686
- **Dockerfile** — Downloads the PocketBase Linux binary for the build arch and copies `pb_hooks`. Default env: `SITE_ROOT=/site`, `SITE_URL=...`. Run with `-v /home/forge/site.example.com/pb_data:/app/pb_data -v /home/forge/site.example.com:/site` and `-e SITE_DEPLOY_TOKEN=...`; see [docs/DEPLOY.md](docs/DEPLOY.md).
8787

8888
## API (3 routes)

docker-compose.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,13 @@
1-
# Production compose. Use the published image (GHCR) or build locally.
2-
#
3-
# Published image (GHCR): set in .env or env:
4-
# DOCKER_IMAGE=ghcr.io/transformable-app/transformable-container:latest
5-
# Then: docker compose pull && docker compose up -d
6-
#
7-
# Local build (no DOCKER_IMAGE): docker compose up -d --build
8-
#
9-
# Before first run: create host dirs and set token
10-
# sudo mkdir -p /srv/pb/data /srv/site/releases
11-
# sudo chown -R "$(id -u):$(id -g)" /srv/pb /srv/site
12-
# cp .env.example .env && edit .env (SITE_DEPLOY_TOKEN required; optional SITE_URL, DOCKER_IMAGE)
13-
141
services:
152
transformable:
16-
image: ${DOCKER_IMAGE:-transformable-container:latest}
17-
build:
18-
context: .
19-
dockerfile: Dockerfile
3+
image: ghcr.io/transformable-app/transformable-container:latest
204
restart: unless-stopped
215
ports:
22-
- "8090:8090"
6+
- 8090:8090
237
volumes:
24-
- /srv/pb/data:/app/pb_data
25-
- /srv/site:/site
26-
env_file:
27-
- .env
8+
- /home/forge/site_pb_data:/app/pb_data
9+
- /home/forge/site.example.com:/site
2810
environment:
2911
- SITE_DEPLOY_TOKEN=${SITE_DEPLOY_TOKEN}
30-
- SITE_URL=${SITE_URL:-https://www.example.com}
31-
# Uncomment if host dirs are owned by a specific user (e.g. 1000:1000)
32-
# user: "${UID:-1000}:${GID:-1000}"
12+
- SITE_URL=${SITE_URL:-https://site.example.com}
13+
- SITE_ROOT=${SITE_ROOT:-/site}

0 commit comments

Comments
 (0)