Change to latest compose, use affine container
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
name: affine
|
||||
services:
|
||||
affine:
|
||||
image: ghcr.io/toeverything/affine-graphql:${AFFINE_REVISION:-stable}
|
||||
image: ghcr.io/toeverything/affine:${AFFINE_REVISION:-stable}
|
||||
container_name: affine_server
|
||||
ports:
|
||||
- '${PORT:-3010}:3010'
|
||||
@@ -25,7 +25,7 @@ services:
|
||||
restart: unless-stopped
|
||||
|
||||
affine_migration:
|
||||
image: ghcr.io/toeverything/affine-graphql:${AFFINE_REVISION:-stable}
|
||||
image: ghcr.io/toeverything/affine:${AFFINE_REVISION:-stable}
|
||||
container_name: affine_migration_job
|
||||
volumes:
|
||||
# custom configurations
|
||||
|
||||
@@ -95,7 +95,7 @@ podman run --rm \
|
||||
-e AFFINE_INDEXER_ENABLED=false \
|
||||
-v "$UPLOAD_LOCATION:/root/.affine/storage:Z" \
|
||||
-v "$CONFIG_LOCATION:/root/.affine/config:Z" \
|
||||
ghcr.io/toeverything/affine-graphql:$AFFINE_REVISION \
|
||||
ghcr.io/toeverything/affine:$AFFINE_REVISION \
|
||||
sh -c 'node ./scripts/self-host-predeploy.js'
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ podman create \
|
||||
-e AFFINE_INDEXER_ENABLED=false \
|
||||
-v "$UPLOAD_LOCATION:/root/.affine/storage:Z" \
|
||||
-v "$CONFIG_LOCATION:/root/.affine/config:Z" \
|
||||
ghcr.io/toeverything/affine-graphql:$AFFINE_REVISION
|
||||
ghcr.io/toeverything/affine:$AFFINE_REVISION
|
||||
|
||||
podman generate systemd \
|
||||
--new \
|
||||
|
||||
Reference in New Issue
Block a user