-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1.56 KB
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (37 loc) · 1.56 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
# Forgely, for people who would rather type one command than remember flags.
#
# docker compose up -d → http://localhost:8000
#
# No API key is needed here: the Connection tab in Settings takes one and
# stores it in the browser. Set CLOUDSMITH_API_KEY below only if you would
# rather every visitor to this instance share one server-side key.
services:
forgely:
image: fullstackspectrum/forgely:latest
# Commented out on purpose. With a `build:` here, `docker compose up`
# rebuilds from this checkout and stamps the tag above over whatever you
# pulled, so you can sit looking at a stale local image wondering why a
# change never landed. Uncomment to develop against your working tree;
# otherwise `docker compose pull` gets you the published image.
# build: .
container_name: forgely
ports:
- "8000:8000"
volumes:
# The scan cache. Keyed on scan completion time, so it never goes stale
# and is worth keeping between runs — a warm cache turns a cold graph
# build of several thousand packages into a local read.
- forgely-cache:/data
environment:
# All optional. Uncomment what you need.
# - CLOUDSMITH_API_KEY=${CLOUDSMITH_API_KEY}
# - CLOUDSMITH_OWNER=your-workspace
# - CLOUDSMITH_REPO=your-repo
#
# Only needed if the frontend is served from a different origin. In this
# image it is not: one container serves both.
# - CORS_ORIGINS=https://forgely.example.com
- FORGELY_CACHE_PATH=/data/scans.db
restart: unless-stopped
volumes:
forgely-cache: