You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

48 lines
1.3 KiB

version: '2'
services:
weblate:
image: weblate/weblate:{{ weblate_version }}
links:
- database
- cache
volumes:
- weblate-data:/app/data
ports:
- '8000:8080'
env_file:
- ./environment
restart: always
depends_on:
- database
- cache
environment:
- WEBLATE_EMAIL_HOST={{ hostvars["postfix-host"]["ansible_host"] }}
- WEBLATE_EMAIL_PORT=465
- WEBLATE_EMAIL_USE_TLS=0
- WEBLATE_EMAIL_USE_SSL=1
- WEBLATE_SERVER_EMAIL={{ weblate_server_email }}
- WEBLATE_DEFAULT_FROM_EMAIL={{ weblate_default_from_email }}
- WEBLATE_ADMIN_NAME=admin
- WEBLATE_ADMIN_EMAIL={{ weblate_admin_email }}
- WEBLATE_ADMIN_PASSWORD={{ weblate_admin_password }}
- WEBLATE_DEBUG=0
- WEBLATE_ENABLE_HTTPS=1
- WEBLATE_ALLOWED_HOSTS=weblate.{{ domain }},{{ hostvars[groups["weblate-service-group"][0]]["ansible_host"] }}
- WEBLATE_REGISTRATION_OPEN=1
database:
image: postgres:9.6-alpine
env_file:
- ./environment
volumes:
- postgres-data:/var/lib/postgresql/data
restart: always
cache:
image: redis:5-alpine
restart: always
command: [ "redis-server", "--appendonly", "yes" ]
volumes:
- redis-data:/data
volumes:
weblate-data: { }
postgres-data: { }
redis-data: { }