Skip to content

Commit

Permalink
fix(nginx): deploy compose.yml now sets the secrets uid to nginx user…
Browse files Browse the repository at this point in the history
… 101

Signed-off-by: Dusan Malusev <[email protected]>
  • Loading branch information
Dusan Malusev committed Jan 7, 2025
1 parent 60ee30e commit a80fc88
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
29 changes: 19 additions & 10 deletions deploy/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ services:
build:
context: ../
dockerfile: deploy/nginx/Dockerfile
container_name: nginx
restart: unless-stopped
depends_on:
- soketi
Expand Down Expand Up @@ -38,7 +37,6 @@ services:
- node.loadbalancer == true
soketi:
image: 'quay.io/soketi/soketi:latest-16'
container_name: soketi
stop_signal: SIGINT
restart: unless-stopped
extra_hosts:
Expand Down Expand Up @@ -83,7 +81,6 @@ services:
- valkey.users
umami:
image: ghcr.io/umami-software/umami:postgresql-v2.15
container_name: umami
restart: unless-stopped
stop_signal: SIGINT
deploy:
Expand All @@ -108,7 +105,6 @@ services:
- umami.env
scheduler:
image: 'ghcr.io/malusevdevelopment/website:${VERSION:-latest}'
container_name: scheduler
stop_signal: SIGINT
deploy:
mode: replicated
Expand Down Expand Up @@ -136,7 +132,6 @@ services:
- soketi
horizon:
image: 'ghcr.io/malusevdevelopment/website:${VERSION:-latest}'
container_name: horizon
working_dir: /var/www/html
command: start-container php artisan pulse:check -n --ansi
stop_signal: SIGINT
Expand Down Expand Up @@ -164,7 +159,6 @@ services:
- soketi
pulse-check:
image: 'ghcr.io/malusevdevelopment/website:${VERSION:-latest}'
container_name: pulse-check
working_dir: /var/www/html
stop_signal: SIGINT
command: start-container php artisan pulse:check -n --ansi
Expand All @@ -191,7 +185,6 @@ services:
- soketi
pulse-work:
image: 'ghcr.io/malusevdevelopment/website:${VERSION:-latest}'
container_name: pulse-work
stop_signal: SIGINT
working_dir: /var/www/html
command: start-container php artisan pulse:work -n --ansi
Expand Down Expand Up @@ -219,7 +212,6 @@ services:
- soketi
sqs:
image: 'ghcr.io/malusevdevelopment/website:${VERSION:-latest}'
container_name: sqs
working_dir: /var/www/html
command: start-container php artisan queue:work sqs --max-jobs=1000 --sleep=3 --tries=3 --max-time=3600
extra_hosts:
Expand Down Expand Up @@ -250,7 +242,6 @@ services:
context: ../
dockerfile: docker/php/Dockerfile
target: production
container_name: website
working_dir: /var/www/html
command: start-container php artisan octane:frankenphp --host=0.0.0.0 --port=8080 --admin-host=0.0.0.0 --admin-port=2019 --watch --log-level=debug --max-requests=1000
stop_signal: SIGINT
Expand Down Expand Up @@ -295,24 +286,42 @@ networks:
secrets:
dusanmalusev.dev.fullchain.pem:
external: true
uid: "101"
gid: "101"
dusanmalusev.dev.privkey.pem:
external: true
uid: "101"
gid: "101"
dusanmalusev.dev.chain.pem:
external: true
uid: "101"
gid: "101"

statistics.dusanmalusev.dev.fullchain.pem:
external: true
uid: "101"
gid: "101"
statistics.dusanmalusev.dev.privkey.pem:
external: true
uid: "101"
gid: "101"
statistics.dusanmalusev.dev.chain.pem:
external: true
uid: "101"
gid: "101"

live.dusanmalusev.dev.fullchain.pem:
external: true
uid: "101"
gid: "101"
live.dusanmalusev.dev.privkey.pem:
external: true
uid: "101"
gid: "101"
live.dusanmalusev.dev.chain.pem:
external: true
uid: "101"
gid: "101"

valkey.users:
external: true
external: true
2 changes: 1 addition & 1 deletion deploy/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
user nginx;
worker_processes auto;
worker_processes 16;
pid /run/nginx.pid;
error_log /var/log/nginx/error.log;
include /etc/nginx/modules-enabled/*.conf;
Expand Down

0 comments on commit a80fc88

Please sign in to comment.