Skip to content

Instantly share code, notes, and snippets.

@vanilla-thunder
Created January 9, 2022 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanilla-thunder/59fc4d8afe79aeb6992d26860040d7f9 to your computer and use it in GitHub Desktop.
Save vanilla-thunder/59fc4d8afe79aeb6992d26860040d7f9 to your computer and use it in GitHub Desktop.
portainer weblate stack
WEBLATE_DEBUG=1
WEBLATE_LOGLEVEL=DEBUG
WEBLATE_SITE_TITLE=Weblate
WEBLATE_SITE_DOMAIN=weblate.example.com
WEBLATE_ADMIN_NAME=Weblate Admin
WEBLATE_ADMIN_EMAIL=you@example.com
WEBLATE_ADMIN_PASSWORD=xxxxx
WEBLATE_SERVER_EMAIL=weblate@example.com
WEBLATE_DEFAULT_FROM_EMAIL=weblate@example.com
WEBLATE_ALLOWED_HOSTS=*
WEBLATE_REGISTRATION_OPEN=1
WEBLATE_TIME_ZONE=Europe/Berlin
WEBLATE_REQUIRE_LOGIN=1
WEBLATE_EMAIL_HOST=smtp.example.com
WEBLATE_EMAIL_HOST_USER=weblate@mb-dev.com
WEBLATE_EMAIL_HOST_PASSWORD=12345
POSTGRES_PASSWORD=weblate
POSTGRES_USER=weblate
POSTGRES_DATABASE=weblate
POSTGRES_HOST=weblate_db
POSTGRES_PORT=5432
REDIS_HOST=weblate_cache
REDIS_PORT=6379
# my portainer stack config for weblate
# you might want to change the volumes config, since i'm using binds instead of volumes
# after you deployed the stack, go to weblate_app container and join a network you can access.
version: "3"
services:
weblate_app:
image: weblate/weblate
container_name: weblate_app
tmpfs:
- /app/cache
volumes:
- /srv/_docker/weblate/data:/app/data
restart: always
depends_on:
- weblate_db
- weblate_cache
environment:
- WEBLATE_DEBUG
- WEBLATE_LOGLEVEL
- WEBLATE_SITE_TITLE
- WEBLATE_ADMIN_NAME
- WEBLATE_ADMIN_EMAIL
- WEBLATE_ADMIN_PASSWORD
- WEBLATE_SERVER_EMAIL
- WEBLATE_DEFAULT_FROM_EMAIL
- WEBLATE_ALLOWED_HOSTS
- WEBLATE_REGISTRATION_OPEN
- WEBLATE_TIME_ZONE
- WEBLATE_REQUIRE_LOGIN
- POSTGRES_PASSWORD
- POSTGRES_USER
- POSTGRES_DATABASE
- POSTGRES_HOST
- POSTGRES_PORT
- REDIS_HOST
- REDIS_PORT
- WEBLATE_EMAIL_HOST
- WEBLATE_EMAIL_HOST_USER
- WEBLATE_EMAIL_HOST_PASSWORD
- WEBLATE_SITE_DOMAIN
weblate_db:
image: postgres:13-alpine
container_name: weblate_db
volumes:
- /srv/_docker/weblate/postgres:/var/lib/postgresql/data
restart: always
environment:
- POSTGRES_PASSWORD
- POSTGRES_USER
- POSTGRES_DATABASE
- POSTGRES_HOST
- POSTGRES_PORT
weblate_cache:
image: redis:6-alpine
container_name: weblate_cache
restart: always
command: ["redis-server", "--appendonly", "yes"]
volumes:
- /srv/_docker/weblate/redis:/data
environment:
- POSTGRES_PASSWORD
- POSTGRES_USER
- POSTGRES_DATABASE
- POSTGRES_HOST
- POSTGRES_PORT
- REDIS_HOST
- REDIS_PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment