forked from arvids-unavailable/openGym
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (30 loc) · 1.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (30 loc) · 1.02 KB
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
28
29
30
31
32
name: opengym
services:
# Passkey auth + per-user data (Node, no framework).
# image: prebuilt (docker compose pull). build: from source (docker compose up --build).
api:
image: ghcr.io/duartesantos8/opengym-api:latest
build: ./api
restart: unless-stopped
env_file: .env
environment:
- PORT=3000 # internal port (nginx proxies here) — do not change
- DATA_DIR=/data
volumes:
- ./data:/data # users, passkeys, per-user state, session secret — BACK THIS UP
# Builds the React frontend (multi-stage) and serves it, proxying /api → api
# and the exercise media from the shared volume. Single origin for passkeys.
web:
image: ghcr.io/duartesantos8/opengym-web:latest
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
api:
condition: service_started
ports:
- "${WEB_PORT:-8080}:80"
volumes:
- ./media/img:/usr/share/nginx/html/img:ro
- ./media/gif:/usr/share/nginx/html/gif:ro