-
|
Hi all, However before getting too far, I tried making sure that data persists to the local storage, (as I frequently rebuild my container and setup) and don't want to lose data each time. I notice that changing information, such as Admin users full name to something else, saves fine, but after bringing the containers down and back up, it reverts back to "admin" and my change did not persist. here is my (redacted) compose, I'm not extremely confident in my abilities, so mind any errors. The below was how I got it working properly via cloudflare tunnel. weblate:
image: weblate/weblate:latest
container_name: weblate
ports:
- 80:8080
volumes:
- /volume3/docker/weblate/data:/app/data
- /volume3/docker/weblate/Localizations:/app/data/repos/xcode
environment:
WEBLATE_EMAIL_HOST: smtp.sendgrid.net
WEBLATE_EMAIL_PORT: 587
WEBLATE_EMAIL_USE_TLS: "true"
WEBLATE_EMAIL_HOST_USER: apikey
WEBLATE_EMAIL_HOST_PASSWORD: #####
WEBLATE_SERVER_EMAIL: #####
WEBLATE_DEFAULT_FROM_EMAIL: #####
WEBLATE_ADMIN_PASSWORD: #####
WEBLATE_ADMIN_EMAIL: #####
WEBLATE_SITE_DOMAIN: #####
WEBLATE_ALLOWED_HOSTS: #####
WEBLATE_CSRF_TRUSTED_ORIGINS: #####
WEBLATE_ENABLE_HTTPS: "true"
WEBLATE_USE_X_FORWARDED_HOST: "true"
WEBLATE_ENABLE_PROXY_PROTO: "true"
WEBLATE_SECURE_PROXY_SSL_HEADER: "HTTP_X_FORWARDED_PROTO,https"
# Required database configuration
WEBLATE_DATABASE_BACKEND: postgres
POSTGRES_HOST: weblate-db
POSTGRES_PORT: 5432
POSTGRES_USER: weblate
POSTGRES_PASSWORD: #####
POSTGRES_DB: weblate
REDIS_HOST: weblate-redis
REDIS_PORT: 6379
depends_on:
- weblate-db
- weblate-redis
weblate-db:
image: postgres:15
container_name: weblate-db
environment:
POSTGRES_USER: weblate
POSTGRES_PASSWORD: #####
POSTGRES_DB: weblate
volumes:
- /volume3/docker/weblate/postgres:/var/lib/postgresql/data
restart: unless-stopped
weblate-redis:
image: redis:alpine
container_name: weblate-redis
restart: unless-stopped |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
This is described in the documentation: https://docs.weblate.org/en/latest/admin/install/docker.html#docker-container-volumes |
Beta Was this translation helpful? Give feedback.
I had reviewed that. My issue stemmed from testing this with the admin full name, which isn't persistent (unless added to the compose)
my setup is persistent, just not that item I was testing with.