Repository navigation
Expand file tree
/
Copy pathdocker-compose.demo.yml
More file actions
89 lines (83 loc) · 2.91 KB
/
Copy pathdocker-compose.demo.yml
File metadata and controls
89 lines (83 loc) · 2.91 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Demo compose for Ever Works platform.
#
# Minimal, zero-dependency showcase. Brings up api + web + mcp + docs from
# pre-built GHCR images using SQLite in a named volume — no Postgres, no
# Redis, no Trigger.dev. The goal is "clone, `docker compose up`, see it
# work" for first-time evaluators.
#
# Quick start:
#
# docker compose -f docker-compose.demo.yml --env-file .env.demo.compose up -d
# open http://localhost:3000
#
# For anything past evaluation, use docker-compose.yml (Postgres + Redis,
# production-shaped) or docker-compose.build.yml (build from source).
services:
ever-works-api:
image: ghcr.io/ever-works/ever-works-api:latest
container_name: ever-works-api
restart: unless-stopped
env_file: .env.demo.compose
environment:
DATABASE_TYPE: sqlite
DATABASE_PATH: /app/apps/api/data/database.db
APP_TYPE: api
PORT: 3100
volumes:
- api_data:/app/apps/api/data
ports:
- '3100:3100'
networks:
- ever-works-network
ever-works-web:
image: ghcr.io/ever-works/ever-works-web:latest
container_name: ever-works-web
restart: unless-stopped
env_file: .env.demo.compose
# PORT is a container-role value: web listens on 3000, API on 3100,
# MCP on 3200. Pin it inline so the env_file's API-targeted `PORT`
# value (3100) doesn't bleed into the web container — otherwise
# the Next standalone server binds to 3100 inside the container
# while `ports: 3000:3000` publishes 3000, breaking the demo URL.
environment:
PORT: 3000
API_URL: http://ever-works-api:3100
depends_on:
- ever-works-api
ports:
- '3000:3000'
networks:
- ever-works-network
# MCP server is profile-gated because it refuses to start without
# `EVER_WORKS_API_KEY` — that key has to be minted via the web
# dashboard first. Bring it up explicitly once the platform is
# running and you have a key:
# docker compose -f docker-compose.demo.yml --profile mcp up -d ever-works-mcp
ever-works-mcp:
image: ghcr.io/ever-works/ever-works-mcp:latest
container_name: ever-works-mcp
restart: unless-stopped
profiles: ['mcp']
env_file: .env.demo.compose
environment:
PORT: 3200
EVER_WORKS_API_URL: http://ever-works-api:3100
depends_on:
- ever-works-api
ports:
- '3200:3200'
networks:
- ever-works-network
ever-works-docs:
image: ghcr.io/ever-works/ever-works-docs:latest
container_name: ever-works-docs
restart: unless-stopped
ports:
- '3300:80'
networks:
- ever-works-network
volumes:
api_data: {}
networks:
ever-works-network:
driver: bridge