33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
services:
|
|
garage:
|
|
image: dxflrs/garage:${GARAGE_CORE_IMAGE_VERSION}
|
|
container_name: ${GARAGE_CONTAINER_NAME}
|
|
restart: ${RESTART}
|
|
volumes:
|
|
# Garage configuration and metadata
|
|
- ./${GARAGE_CONFIG_PATH}/garage.toml:/etc/garage.toml
|
|
- ./${GARAGE_CONFIG_PATH}/meta:/var/lib/garage/meta
|
|
# Map the data directory to a local path for persistence
|
|
- ./${GARAGE_DATA_PATH}:/var/lib/garage/data
|
|
ports:
|
|
- "3900:3900"
|
|
- "3901:3901"
|
|
- "3902:3902"
|
|
- "3903:3903"
|
|
|
|
webui:
|
|
image: khairul169/garage-webui:${GARAGE_WEB_IMAGE_VERSION}
|
|
container_name: ${GARAGE_CONTAINER_NAME}-webui
|
|
restart: ${RESTART}
|
|
depends_on:
|
|
- ${GARAGE_CONTAINER_NAME}
|
|
volumes:
|
|
# Mount the same configuration file for the web UI to read settings
|
|
- ./${GARAGE_CONFIG_PATH}/garage.toml:/etc/garage.toml:ro
|
|
ports:
|
|
- "${GARAGE_WEB_UI_PORT}:3909"
|
|
environment:
|
|
API_BASE_URL: "http://${GARAGE_CONTAINER_NAME}:3903"
|
|
API_ADMIN_KEY: "${GARAGE_ADMIN_TOKEN}"
|
|
S3_ENDPOINT_URL: "http://${GARAGE_CONTAINER_NAME}:3900"
|