Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions retirementhub/portainer-stack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: '3.8'

services:
backend:
image: ${DOCKER_HUB_REGISTRY_USERNAME}/${DOCKER_HUB_BACKEND_IMAGE_NAME:-retirementhub-backend}:${IMAGE_TAG:-latest}
container_name: retirementhub-backend
ports:
- "${BACKEND_PORT:-8100}:80"
environment:
- PORT=80
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT:-5432}
- DB_NAME=${DB_NAME:-retirementhub}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DEBUG=${DEBUG:-}
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- retirementhub-network
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:80/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s

frontend:
image: ${DOCKER_HUB_REGISTRY_USERNAME}/${DOCKER_HUB_FRONTEND_IMAGE_NAME:-retirementhub-frontend}:${IMAGE_TAG:-latest}
container_name: retirementhub-frontend
ports:
- "${FRONTEND_PORT:-8110}:80"
depends_on:
- backend
networks:
- retirementhub-network
restart: unless-stopped

networks:
retirementhub-network:
driver: bridge