- add docker-swarm deployment example

- update dependencies
This commit is contained in:
Amruth Pillai
2023-11-22 09:08:23 +01:00
parent 55e94ca792
commit dfb3ef60dd
12 changed files with 602 additions and 413 deletions

View File

@ -1,4 +1,4 @@
version: "3"
version: "3.8"
# In this Docker Compose example, we only fire up the services required for local development.
# This is not advised for production use as it exposes ports to the database insecurely.
@ -6,22 +6,22 @@ version: "3"
services:
# Database (Postgres)
postgres:
image: postgres:alpine
restart: unless-stopped
ports:
- ${POSTGRES_PORT:-5432}:5432
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${POSTGRES_DB:-postgres}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-postgres}"]
interval: 10s
timeout: 5s
retries: 5
# postgres:
# image: postgres:alpine
# restart: unless-stopped
# ports:
# - ${POSTGRES_PORT:-5432}:5432
# volumes:
# - postgres_data:/var/lib/postgresql/data
# environment:
# POSTGRES_DB: ${POSTGRES_DB:-postgres}
# POSTGRES_USER: ${POSTGRES_USER:-postgres}
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-postgres}"]
# interval: 10s
# timeout: 5s
# retries: 5
# Storage (for image uploads)
minio: