-
Notifications
You must be signed in to change notification settings - Fork 224
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (24 loc) · 875 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
25 lines (24 loc) · 875 Bytes
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
services:
codeg:
build: .
# Or use a pre-built image:
# image: xintaofei/codeg:latest
ports:
- "3080:3080"
volumes:
- codeg-data:/data
# Mount your project directories (optional):
# - /path/to/projects:/projects
environment:
- CODEG_TOKEN=${CODEG_TOKEN:-}
- CODEG_PORT=3080
- CODEG_HOST=0.0.0.0
# In-place upgrades (Settings → Software Update) rewrite the binaries and
# web assets inside this container's writable layer, not the image. The
# codeg-data volume persists, but an upgrade lives only in the running
# container: recreating it (`--force-recreate`, or recreating after a
# `docker pull`) starts from the image again and drops the upgrade. Build or
# pull an image at the new version and recreate to make it permanent.
restart: unless-stopped
volumes:
codeg-data: