Bake Garage configuration into deployment image
This commit is contained in:
@@ -35,3 +35,6 @@ CMD ["sh", "-c", "bun scripts/check-production-env.ts && exec bun apps/worker/sr
|
||||
FROM worker AS migrate
|
||||
WORKDIR /app/packages/database
|
||||
CMD ["bun", "src/migrate.ts"]
|
||||
|
||||
FROM dxflrs/garage:v2.3.0 AS garage
|
||||
COPY docker/garage.production.toml /etc/garage.toml
|
||||
|
||||
+1
-2
@@ -38,7 +38,7 @@ services:
|
||||
timeout: 3s
|
||||
retries: 20
|
||||
garage:
|
||||
image: dxflrs/garage:v2.3.0
|
||||
build: {context: ., target: garage}
|
||||
restart: unless-stopped
|
||||
command: ["/garage", "-c", "/etc/garage.toml", "server", "--single-node", "--default-bucket"]
|
||||
environment:
|
||||
@@ -50,7 +50,6 @@ services:
|
||||
GARAGE_DEFAULT_BUCKET: manyangles
|
||||
expose: ["3900"]
|
||||
volumes:
|
||||
- ./docker/garage.production.toml:/etc/garage.toml:ro
|
||||
- garage-meta:/var/lib/garage/meta
|
||||
- garage-data:/var/lib/garage/data
|
||||
healthcheck:
|
||||
|
||||
Reference in New Issue
Block a user