feat: add docker-compose configuration for development environment

This commit is contained in:
Adekabang 2025-07-30 23:34:11 -04:00
parent af376beb5b
commit c5669a9cf7
2 changed files with 31 additions and 0 deletions

1
.gitignore vendored
View File

@ -26,3 +26,4 @@ dist-ssr
.env* .env*
!.env.example !.env.example
docker-compose.*.yml docker-compose.*.yml
!docker-compose.dev.yml

30
docker-compose.dev.yml Normal file
View File

@ -0,0 +1,30 @@
services:
garage:
image: dxflrs/garage:v2.0.0
container_name: garage
volumes:
- ./dev.local/garage.toml:/etc/garage.toml
- ./dev.local/meta:/var/lib/garage/meta
- ./dev.local/data:/var/lib/garage/data
restart: unless-stopped
ports:
- 3900:3900
- 3901:3901
- 3902:3902
- 3903:3903
webui:
build:
context: .
dockerfile: Dockerfile
container_name: garage-webui
restart: unless-stopped
volumes:
- ./dev.local/garage.toml:/etc/garage.toml:ro
ports:
- 3909:3909
environment:
API_BASE_URL: "http://garage:3903"
S3_ENDPOINT_URL: "http://garage:3900"
AUTH_USER_PASS: "admin:$2y$10$2i1DScIpTap7oB6KEYLP7um9/ms6LBf.TBzuqfSWRdRMvWRe35Y0S" #admin:admin