48 lines
975 B
YAML
48 lines
975 B
YAML
version: '3'
|
|
services:
|
|
weblate:
|
|
image: docker.io/weblate/weblate
|
|
tmpfs:
|
|
- /run
|
|
- /tmp
|
|
volumes:
|
|
- weblate-data:/app/data
|
|
- weblate-cache:/app/cache
|
|
- weblate-var:/var
|
|
env_file:
|
|
- ./environment
|
|
restart: always
|
|
read_only: true
|
|
depends_on:
|
|
- database
|
|
- cache
|
|
database:
|
|
image: docker.io/postgres:15-alpine
|
|
env_file:
|
|
- ./environment
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
restart: always
|
|
ports:
|
|
- "5433"
|
|
cache:
|
|
image: docker.io/redis:7-alpine
|
|
restart: always
|
|
read_only: true
|
|
command: [redis-server, --save, '60', '1']
|
|
volumes:
|
|
- redis-data:/data
|
|
ports:
|
|
- "6379"
|
|
tcptosocket:
|
|
image: docker.io/alpine/socat:latest
|
|
command: "UNIX-LISTEN:/mnt/weblate,fork,reuseaddr TCP4:weblate:8080"
|
|
volumes:
|
|
- /srv/http/pages:/mnt
|
|
volumes:
|
|
weblate-cache: {}
|
|
weblate-data: {}
|
|
weblate-var: {}
|
|
postgres-data: {}
|
|
redis-data: {}
|