Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
42 lines (40 loc) · 1.79 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
42 lines (40 loc) · 1.79 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
# The development build: `:dev` is published once a day from the `dev` branch,
# when it has changed and passed the test suites, ahead of the next release. It can break,
# and a database it has migrated may not open in the release before it, which
# is why it keeps its data in a volume of its own.
#
# docker compose -f docker-compose.dev.yml up -d
# docker compose -f docker-compose.dev.yml pull && docker compose -f docker-compose.dev.yml up -d
#
# It reads the same `.env` as `docker-compose.yml`, where there is one, and
# uses the same port, so run one or the other. To run both at once, give this one another port and its
# own env file with `ORIGIN` set to match.
name: heddohon-dev
services:
heddohon-dev:
image: ghcr.io/zorcerer/heddohon:dev
container_name: heddohon-dev
restart: unless-stopped
ports:
# Every interface, so the quick start opens from another computer. Behind
# a reverse proxy, publish it on '127.0.0.1:3000:3000' instead: Docker's
# port rules pass ufw, and the plain-http port would otherwise take
# requests that skip the proxy's TLS, rate limits and /healthz rule.
- '3000:3000'
volumes:
- heddohon-dev-data:/data
# Optional. Without one, Heddohon prints a setup code to its log
# (`docker compose logs`) and its setup page takes the rest. A variable set
# here takes precedence over what that page saves. `required: false` needs
# Docker Compose 2.24 or later; with an older one, `touch .env` first.
env_file:
- path: .env
required: false
# The server runs as the owner of its data, which is `node` (1000:1000) in
# a new volume. To run as another user, such as the one a bind-mounted
# folder belongs to:
# environment:
# PUID: 1000
# PGID: 1000
volumes:
heddohon-dev-data: