docker-compose.yaml
Rama main · réplica de lectura del repositorio original.
services:
postgres:
image: postgres:17
environment:
POSTGRES_PASSWORD: superSecretPasswordPleaseChangeMe
POSTGRES_USER: postgres
POSTGRES_DB: monetr
volumes:
- postgresData:/var/lib/postgresql/data
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
restart: unless-stopped
networks:
- monetr_network
monetr:
image: ghcr.io/monetr/monetr:1.22.0 # x-release-please-version
healthcheck:
test: [ "CMD", "/usr/bin/monetr", "status" ]
interval: 30s
timeout: 10s
retries: 10
start_period: 5s
restart: unless-stopped
command:
- serve
# Setup the database and perform migrations.
- --migrate
# Since certificates will not have been created, make some.
- --generate-certificates
ports:
- "4000:4000"
depends_on:
postgres:
condition: service_healthy
volumes:
# Contains certificates generated on startup as well as config
- monetrData:/etc/monetr
environment:
# After creating your own user, it is recommended to disable sign ups if
# your monetr instance is exposed to the public internet. Otherwise
# strangers may be able to use your instance themselves.
MONETR_ALLOW_SIGN_UP: ${MONETR_ALLOW_SIGN_UP:-true}
MONETR_PG_USERNAME: postgres
MONETR_PG_PASSWORD: superSecretPasswordPleaseChangeMe
MONETR_PG_DATABASE: monetr
MONETR_PG_ADDRESS: postgres
MONETR_CACHE_KIND: memory
MONETR_STORAGE_ENABLED: ${MONETR_STORAGE_ENABLED:-true}
MONETR_STORAGE_PROVIDER: ${MONETR_STORAGE_PROVIDER:-filesystem}
networks:
- monetr_network
volumes:
monetrData:
postgresData:
networks:
monetr_network: