summaryrefslogtreecommitdiffhomepage
path: root/docker-compose.prod.yml
blob: 131e865e20fdddb2af88aab68113bfd4359f3e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# --------------------------------------------------------------------------
# docker-compose.prod.yml — Production deployment for the Bicycle Wheel
# Circumference app.
#
# Builds a static bundle and serves it with Nginx on port 80.
# Designed for use with Dokploy (Traefik handles TLS and routing).
#
# Local usage:
#   docker compose -f docker-compose.prod.yml up -d --build
#   → open http://localhost:80
#
# Dokploy usage:
#   Set the Compose Path to ./docker-compose.prod.yml in Dokploy.
#   Dokploy will inject Traefik labels and the dokploy-network
#   automatically — do NOT add them here.
# --------------------------------------------------------------------------

services:
  web:
    build:
      context: .
      dockerfile: Dockerfile.prod
    restart: unless-stopped
    # No ports mapping needed when behind Traefik/Dokploy.
    # Uncomment the line below for local testing without a reverse proxy.
    # ports:
    #   - "80:80"