Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (97 loc) · 3.78 KB
/
Copy pathdocker-compose.yml
File metadata and controls
102 lines (97 loc) · 3.78 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
90
91
92
93
94
95
96
97
98
99
100
101
102
# Main compose for Ever Works platform — uses pre-built images from GHCR.
#
# Brings up the full platform (api, web, mcp, docs) plus the shared infra
# (PostgreSQL, Redis) from docker-compose.infra.yml. The application
# containers pull `ghcr.io/ever-works/*:latest` so this is the fast path —
# no local Docker build, just `docker compose up`.
#
# Quick start:
#
# # optional — edit .env.compose: every service reads its settings from it
# docker compose up -d
# open http://localhost:3000 # web dashboard
#
# Settings go in `.env.compose` (the `env_file` of every service below). A
# `.env` file next to this one only fills in `${...}` placeholders of THIS
# file (for example WEB_URL); the containers never read it. So a switch such
# as `EVER_STATS_ENABLED=true` belongs in `.env.compose`.
# Want to build the images locally instead of pulling from GHCR? Use
# docker-compose.build.yml — same services, but with `build:` blocks.
#
# Want self-hosted Trigger.dev for background jobs? Layer in
# docker-compose.trigger.yml (profile-gated, off by default):
#
# docker compose -f docker-compose.yml -f docker-compose.trigger.yml \
# --profile trigger up -d
include:
- ./docker-compose.infra.yml
services:
ever-works-api:
image: ghcr.io/ever-works/ever-works-api:latest
container_name: ever-works-api
restart: unless-stopped
env_file: .env.compose
# `environment:` is intentionally minimal — only the container-role
# values that should not be overridable (this image is always
# `APP_TYPE=api` listening on `PORT=3100`). Everything else
# (DATABASE_*, REDIS_URL, THROTTLER_REDIS_URL, RUN_MIGRATIONS,
# WEB_URL, ...) is read from .env.compose, so operators can repoint
# at managed Postgres / Redis without editing this file.
environment:
APP_TYPE: api
PORT: 3100
depends_on:
ever-works-db:
condition: service_healthy
ever-works-redis:
condition: service_healthy
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.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 other services.
environment:
PORT: 3000
API_URL: http://ever-works-api:3100
NEXT_PUBLIC_WEB_URL: ${WEB_URL:-http://localhost:3000}
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 --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.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