image service
This commit is contained in:
@@ -8,7 +8,29 @@ const safeRuntime = {
|
||||
CORE_SOURCE_MODE: 'clone',
|
||||
NODE_OPTIONS: '--max-old-space-size=1536',
|
||||
RAYON_NUM_THREADS: '2',
|
||||
GATEWAY_IMAGE_UPLOAD_URL: 'https://sam-image.hided.net',
|
||||
GATEWAY_IMAGE_UPLOAD_SECRET_FILE: '/run/secrets/image_upload_core2026_secret',
|
||||
GATEWAY_SHARED_ICON_PUBLIC_URL: 'https://sam-image.hided.net/icons',
|
||||
GAME_IMAGE_UPLOAD_URL: 'https://sam-image.hided.net',
|
||||
GAME_IMAGE_UPLOAD_SECRET_FILE: '/run/secrets/image_upload_core2026_secret',
|
||||
GAME_CONTENT_IMAGE_PUBLIC_URL: 'https://sam-image.hided.net/uploads/core2026',
|
||||
IMAGE_SYNC_URL: 'https://sam-image.hided.net',
|
||||
IMAGE_SYNC_SECRET_FILE: '/run/secrets/image_sync_core2026_secret',
|
||||
},
|
||||
volumes: [
|
||||
{
|
||||
type: 'bind',
|
||||
source: '/secrets/image_upload_core2026_secret',
|
||||
target: '/run/secrets/image_upload_core2026_secret',
|
||||
read_only: true,
|
||||
},
|
||||
{
|
||||
type: 'bind',
|
||||
source: '/secrets/image_sync_core2026_secret',
|
||||
target: '/run/secrets/image_sync_core2026_secret',
|
||||
read_only: true,
|
||||
},
|
||||
],
|
||||
restart: 'unless-stopped',
|
||||
mem_limit: String(4 * 1024 * 1024 * 1024),
|
||||
memswap_limit: String(4 * 1024 * 1024 * 1024),
|
||||
@@ -26,10 +48,9 @@ test('accepts a literal, non-restarting development model', () => {
|
||||
...safeRuntime,
|
||||
restart: 'no',
|
||||
environment: {
|
||||
...safeRuntime.environment,
|
||||
CORE_SOURCE_MODE: 'bind',
|
||||
RUNTIME_MODE: 'development',
|
||||
NODE_OPTIONS: '--max-old-space-size=1536',
|
||||
RAYON_NUM_THREADS: '2',
|
||||
},
|
||||
};
|
||||
assert.deepEqual(validateComposeModel({ services }, 'development'), []);
|
||||
|
||||
Reference in New Issue
Block a user