Skip to content

Commit

Permalink
chore: apply dclint fixes
Browse files Browse the repository at this point in the history
Fixes applied manually. For automated fixes there is issue with YAML
output it generates.
  • Loading branch information
nijel committed Jan 20, 2025
1 parent f15bbbf commit c7b0ae8
Show file tree
Hide file tree
Showing 6 changed files with 150 additions and 135 deletions.
4 changes: 4 additions & 0 deletions .dclintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rules:
no-unbound-port-interfaces: 0
service-image-require-explicit-tag: 0
require-project-name-field: 0
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ repos:
rev: v3.10.0-2
hooks:
- id: shfmt
- repo: local
hooks:
- id: dclint
name: Docker Compose Linter
entry: dclint .
language: node
require_serial: true
pass_filenames: false
additional_dependencies:
- [email protected]


ci:
autoupdate_schedule: quarterly
56 changes: 28 additions & 28 deletions docker-compose-https.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
services:
weblate:
image: weblate/weblate
tmpfs:
- /run
- /tmp
cache:
image: redis:7-alpine
volumes:
- weblate-data:/app/data
- weblate-cache:/app/cache
env_file:
- ./environment
- redis-data:/data
command: [redis-server, --save, '60', '1']
restart: always
read_only: true
depends_on:
- database
- cache
environment:
WEBLATE_ENABLE_HTTPS: 1
WEBLATE_IP_PROXY_HEADER: HTTP_X_FORWARDED_FOR
database:
image: postgres:17-alpine
env_file:
- ./environment
volumes:
- postgres-data:/var/lib/postgresql/data
env_file:
- ./environment
restart: always
cache:
image: redis:7-alpine
restart: always
read_only: true
command: [redis-server, --save, '60', '1']
volumes:
- redis-data:/data
https-portal:
image: steveltn/https-portal:1
volumes:
- ssl-certs:/var/lib/https-portal
environment:
STAGE: production
PROXY_READ_TIMEOUT: 3600
ports:
- 80:80
- 443:443
restart: always
environment:
STAGE: production
PROXY_READ_TIMEOUT: 3600
weblate:
image: weblate/weblate
depends_on:
- cache
- database
volumes:
- ssl-certs:/var/lib/https-portal
- weblate-data:/app/data
- weblate-cache:/app/cache
environment:
WEBLATE_ENABLE_HTTPS: 1
WEBLATE_IP_PROXY_HEADER: HTTP_X_FORWARDED_FOR
env_file:
- ./environment
restart: always
read_only: true
tmpfs:
- /run
- /tmp
volumes:
weblate-cache: {}
weblate-data: {}
Expand Down
38 changes: 19 additions & 19 deletions docker-compose-single-celery.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
services:
weblate:
image: weblate/weblate
tmpfs:
- /run
- /tmp
cache:
image: redis:7-alpine
volumes:
- weblate-data:/app/data
- weblate-cache:/app/cache
- redis-data:/data
command: [redis-server, --save, '60', '1']
restart: always
read_only: true
database:
image: postgres:17-alpine
volumes:
- postgres-data:/var/lib/postgresql/data
env_file:
- ./environment
restart: always
read_only: true
weblate:
image: weblate/weblate
depends_on:
- database
- cache
- database
volumes:
- weblate-data:/app/data
- weblate-cache:/app/cache
environment:
SINGLE_CELERY_PROCESS: 1
database:
image: postgres:17-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
tmpfs:
- /run
- /tmp
volumes:
weblate-cache: {}
weblate-data: {}
Expand Down
138 changes: 69 additions & 69 deletions docker-compose-split.yml
Original file line number Diff line number Diff line change
@@ -1,169 +1,169 @@
services:
cache:
image: redis:7-alpine
volumes:
- redis-data:/data
command: [redis-server, --save, '60', '1']
restart: always
read_only: true
database:
image: postgres:17-alpine
volumes:
- postgres-data:/var/lib/postgresql/data
env_file:
- ./environment
restart: always
weblate:
image: weblate/weblate
tmpfs:
- /run
- /tmp
- /app/cache
depends_on:
- cache
- database
- weblate-celery-beat
volumes:
- type: volume
source: weblate-data
target: /app/data
environment:
WEBLATE_SERVICE: web
env_file:
- ./environment
restart: always
read_only: true
depends_on:
- database
- cache
- weblate-celery-beat
environment:
WEBLATE_SERVICE: web
weblate-celery-backup:
image: weblate/weblate
tmpfs:
- /run
- /tmp
- /app/cache
weblate-celery-backup:
image: weblate/weblate
depends_on:
- cache
- database
- weblate-celery-beat
volumes:
- type: volume
source: weblate-data
target: /app/data
volume:
nocopy: true
environment:
WEBLATE_SERVICE: celery-backup
env_file:
- ./environment
restart: always
read_only: true
depends_on:
- database
- cache
- weblate-celery-beat
environment:
WEBLATE_SERVICE: celery-backup
weblate-celery-beat:
image: weblate/weblate
tmpfs:
- /run
- /tmp
- /app/cache
weblate-celery-beat:
image: weblate/weblate
depends_on:
- cache
- database
volumes:
- type: volume
source: weblate-data
target: /app/data
volume:
nocopy: true
environment:
WEBLATE_SERVICE: celery-beat
env_file:
- ./environment
restart: always
read_only: true
depends_on:
- database
- cache
environment:
WEBLATE_SERVICE: celery-beat
weblate-celery-celery:
image: weblate/weblate
tmpfs:
- /run
- /tmp
- /app/cache
weblate-celery-celery:
image: weblate/weblate
depends_on:
- cache
- database
- weblate-celery-beat
volumes:
- type: volume
source: weblate-data
target: /app/data
volume:
nocopy: true
environment:
WEBLATE_SERVICE: celery-celery
env_file:
- ./environment
restart: always
read_only: true
depends_on:
- database
- cache
- weblate-celery-beat
environment:
WEBLATE_SERVICE: celery-celery
weblate-celery-memory:
image: weblate/weblate
tmpfs:
- /run
- /tmp
- /app/cache
weblate-celery-memory:
image: weblate/weblate
depends_on:
- cache
- database
- weblate-celery-beat
volumes:
- type: volume
source: weblate-data
target: /app/data
volume:
nocopy: true
environment:
WEBLATE_SERVICE: celery-memory
env_file:
- ./environment
restart: always
read_only: true
depends_on:
- database
- cache
- weblate-celery-beat
environment:
WEBLATE_SERVICE: celery-memory
weblate-celery-notify:
image: weblate/weblate
tmpfs:
- /run
- /tmp
- /app/cache
weblate-celery-notify:
image: weblate/weblate
depends_on:
- cache
- database
- weblate-celery-beat
volumes:
- type: volume
source: weblate-data
target: /app/data
volume:
nocopy: true
environment:
WEBLATE_SERVICE: celery-notify
env_file:
- ./environment
restart: always
read_only: true
depends_on:
- database
- cache
- weblate-celery-beat
environment:
WEBLATE_SERVICE: celery-notify
weblate-celery-translate:
image: weblate/weblate
tmpfs:
- /run
- /tmp
- /app/cache
weblate-celery-translate:
image: weblate/weblate
depends_on:
- cache
- database
- weblate-celery-beat
volumes:
- type: volume
source: weblate-data
target: /app/data
volume:
nocopy: true
env_file:
- ./environment
restart: always
read_only: true
depends_on:
- database
- cache
- weblate-celery-beat
environment:
WEBLATE_SERVICE: celery-translate
database:
image: postgres:17-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
tmpfs:
- /run
- /tmp
- /app/cache
volumes:
weblate-data: {}
postgres-data: {}
Expand Down
Loading

0 comments on commit c7b0ae8

Please sign in to comment.