36 lines
922 B
YAML
36 lines
922 B
YAML
# Compose file for games.coppertone.tech - Spades card game
|
|
# Services bind to 127.0.0.1 only (routed via nginx reverse proxy)
|
|
|
|
services:
|
|
# Frontend - Vue 3 app served by nginx
|
|
frontend:
|
|
build:
|
|
context: ./repo/client
|
|
dockerfile: Containerfile
|
|
container_name: games-spades-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:9300:8080"
|
|
depends_on:
|
|
- backend
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -fs http://localhost:8080/ || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
# Backend - Go WebSocket server
|
|
backend:
|
|
build:
|
|
context: ./repo/server
|
|
dockerfile: Containerfile
|
|
container_name: games-spades-backend
|
|
restart: unless-stopped
|
|
expose:
|
|
- "8080"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -q --spider http://localhost:8080/health || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|