update deployment configs to use unprivledged nginx

This commit is contained in:
sid palas
2023-03-17 10:41:37 -04:00
parent a5f57c79bd
commit 02933b7c5b
8 changed files with 38 additions and 15 deletions

View File

@ -25,6 +25,10 @@ swarm-init:
swarm-deploy-stack:
DOCKER_HOST=${DOCKER_HOST} docker stack deploy -c docker-swarm.yml example-app
.PHONY: swarm-ls
swarm-ls:
DOCKER_HOST=${DOCKER_HOST} docker service ls
.PHONY: swarm-remove-stack
swarm-remove-stack:
DOCKER_HOST=${DOCKER_HOST} docker stack rm example-app
@ -32,4 +36,4 @@ swarm-remove-stack:
.PHONY: create-secrets
create-secrets:
echo -n "foobarbaz" | DOCKER_HOST=${DOCKER_HOST} docker secret create postgres-passwd -
echo -n "postgres://postgres:foobarbaz@db:5432/postgres" | DOCKER_HOST=${DOCKER_HOST} docker secret create database-url -
echo -n "postgres://postgres:foobarbaz@db:5432/postgres" | DOCKER_HOST=${DOCKER_HOST} docker secret create database-url -

View File

@ -6,16 +6,16 @@ services:
networks:
- frontend
ports:
- 80:80
- 80:8080
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/ping"]
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
api-node:
image: sidpalas/devops-directive-docker-course-api-node:8
image: sidpalas/devops-directive-docker-course-api-node:9
read_only: true
networks:
- frontend
@ -35,7 +35,7 @@ services:
retries: 3
start_period: 10s
api-golang:
image: sidpalas/devops-directive-docker-course-api-golang:7
image: sidpalas/devops-directive-docker-course-api-golang:8
read_only: true
networks:
- frontend

View File

@ -11,15 +11,15 @@ services:
networks:
- frontend
ports:
- 80:80
- 80:8080
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/ping"]
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
api-node:
image: sidpalas/devops-directive-docker-course-api-node:8
image: sidpalas/devops-directive-docker-course-api-node:9
read_only: true
deploy:
mode: replicated
@ -42,7 +42,7 @@ services:
retries: 3
start_period: 10s
api-golang:
image: sidpalas/devops-directive-docker-course-api-golang:7
image: sidpalas/devops-directive-docker-course-api-golang:8
read_only: true
deploy:
mode: replicated