Skip to content

Commit

Permalink
Add compose file for single celery process setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Derkades committed Jul 31, 2024
1 parent 5f544ea commit 8bfa7bd
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions docker-compose-single-celery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
services:
weblate:
image: weblate/weblate
tmpfs:
- /run
- /tmp
volumes:
- weblate-data:/app/data
- weblate-cache:/app/cache
env_file:
- ./environment
restart: always
read_only: true
depends_on:
- database
- cache
environment:
SINGLE_CELERY_PROCESS: 1
database:
image: postgres:16-alpine
env_file:
- ./environment
volumes:
- postgres-data:/var/lib/postgresql/data
restart: always
cache:
image: redis:7-alpine
restart: always
read_only: true
command: [redis-server, --save, '60', '1']
volumes:
- redis-data:/data
volumes:
weblate-cache: {}
weblate-data: {}
postgres-data: {}
redis-data: {}

0 comments on commit 8bfa7bd

Please sign in to comment.