Service Naming Standardization:
- Renamed all compose service names to use consistent `{project}_app` pattern
- awsm: `awesome` → `awesome_app`
- gotify: `gotify` → `gotify_app` (also updated container_name)
- proxy: `traefik` → `traefik_app`
- vpn: `wg-easy` → `vpn_app`
- sexy: `directus` → `sexy_api`, `frontend` → `sexy_frontend`
Track to Umami Migration:
- Removed track/ directory (legacy naming)
- Created umami/ directory with updated compose.yaml
- Service now named `umami_app` following naming convention
- Configuration unchanged: PostgreSQL backend, Redis caching, Traefik routing
- Uses TRACK_* environment variables for compatibility with arty.yml
Benefits:
- Consistent naming makes service identification easier across projects
- Aligns with container_name conventions ({PROJECT}_app pattern)
- Improves docker ps readability and service management
- Umami directory name matches actual product name
50 lines
2.2 KiB
YAML
50 lines
2.2 KiB
YAML
services:
|
|
awesome_app:
|
|
image: ${AWESOME_IMAGE:-ghcr.io/valknarness/awesome-app:latest}
|
|
container_name: ${AWESOME_COMPOSE_PROJECT_NAME}_app
|
|
restart: unless-stopped
|
|
user: node
|
|
networks:
|
|
- compose_network
|
|
volumes:
|
|
# Mount database directory for persistence
|
|
- ${AWESOME_DB_VOLUME:-awesome_data}:/home/node/
|
|
# Optional: Mount a pre-existing database
|
|
# - ./awesome.db:/app/awesome.db:ro
|
|
environment:
|
|
# Node
|
|
NODE_ENV: production
|
|
PORT: 3000
|
|
HOSTNAME: 0.0.0.0
|
|
|
|
# Next.js
|
|
NEXT_TELEMETRY_DISABLED: ${NEXT_TELEMETRY_DISABLED:-1}
|
|
|
|
# Database path
|
|
# AWESOME_DB_PATH: ${AWESOME_DB_PATH:-/app/awesome.db}
|
|
|
|
# Optional: Webhook secret for database updates
|
|
WEBHOOK_SECRET: ${AWESOME_WEBHOOK_SECRET:-}
|
|
|
|
# Optional: GitHub token for rate limits
|
|
GITHUB_TOKEN: ${AWESOME_GITHUB_TOKEN:-}
|
|
|
|
# Timezone
|
|
TZ: ${TIMEZONE:-UTC}
|
|
labels:
|
|
- 'traefik.enable=${AWESOME_TRAEFIK_ENABLED:-true}'
|
|
- 'traefik.http.middlewares.${AWESOME_COMPOSE_PROJECT_NAME}-app-redirect-web-secure.redirectscheme.scheme=https'
|
|
- 'traefik.http.routers.${AWESOME_COMPOSE_PROJECT_NAME}-app-web.middlewares=${AWESOME_COMPOSE_PROJECT_NAME}-app-redirect-web-secure'
|
|
- 'traefik.http.routers.${AWESOME_COMPOSE_PROJECT_NAME}-app-web.rule=Host(`${AWESOME_TRAEFIK_HOST}`)'
|
|
- 'traefik.http.routers.${AWESOME_COMPOSE_PROJECT_NAME}-app-web.entrypoints=web'
|
|
- 'traefik.http.routers.${AWESOME_COMPOSE_PROJECT_NAME}-app-web-secure.rule=Host(`${AWESOME_TRAEFIK_HOST}`)'
|
|
- 'traefik.http.routers.${AWESOME_COMPOSE_PROJECT_NAME}-app-web-secure.tls.certresolver=resolver'
|
|
- 'traefik.http.routers.${AWESOME_COMPOSE_PROJECT_NAME}-app-web-secure.entrypoints=web-secure'
|
|
- 'traefik.http.middlewares.${AWESOME_COMPOSE_PROJECT_NAME}-app-web-secure-compress.compress=true'
|
|
- 'traefik.http.routers.${AWESOME_COMPOSE_PROJECT_NAME}-app-web-secure.middlewares=${AWESOME_COMPOSE_PROJECT_NAME}-app-web-secure-compress'
|
|
- 'traefik.http.services.${AWESOME_COMPOSE_PROJECT_NAME}-app-web-secure.loadbalancer.server.port=3000'
|
|
- 'traefik.docker.network=${NETWORK_NAME}'
|
|
volumes:
|
|
awesome_data:
|
|
name: ${AWESOME_COMPOSE_PROJECT_NAME}_data
|