-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathcompose.yaml
More file actions
65 lines (59 loc) · 1.55 KB
/
compose.yaml
File metadata and controls
65 lines (59 loc) · 1.55 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
name: magg
services:
base:
profiles: ["_"] # Hidden from normal operations
build:
dockerfile: dockerfile
args:
MAGG_READ_ONLY: ${MAGG_READ_ONLY:-false}
environment:
MAGG_PRIVATE_KEY: ${MAGG_PRIVATE_KEY:-}
MAGG_LOG_LEVEL: ${MAGG_LOG_LEVEL:-}
MAGG_CONFIG_PATH: ${MAGG_CONFIG_PATH:-}
MAGG_SELF_PREFIX: ${MAGG_SELF_PREFIX:-}
MAGG_AUTO_RELOAD: ${MAGG_AUTO_RELOAD:-false}
MAGG_RELOAD_POLL_INTERVAL: ${MAGG_RELOAD_POLL_INTERVAL:-}
MAGG_RELOAD_USE_WATCHDOG: ${MAGG_RELOAD_USE_WATCHDOG:-}
MAGG_STDERR_SHOW: ${MAGG_STDERR_SHOW:-}
MAGG_PREFIX_SEP: ${MAGG_PREFIX_SEP:-}
volumes:
- ${MAGG_CONFIG_VOLUME:-magg-config}:/home/magg/.magg
networks:
- magg-network
restart: unless-stopped
magg:
extends:
service: base
build:
target: pro
image: ${REGISTRY:-}${REGISTRY:+/}magg:${SOURCE:-${USER}}-pro
container_name: magg-server
ports:
- "8000:8000"
magg-beta:
extends:
service: base
build:
target: pre
image: ${REGISTRY:-}${REGISTRY:+/}magg:${SOURCE:-${USER}}-pre
container_name: magg-server-pre
ports:
- "8001:8000"
magg-dev:
extends:
service: base
build:
target: dev
environment:
MAGG_AUTO_RELOAD: ${MAGG_AUTO_RELOAD:-true}
image: ${REGISTRY:-}${REGISTRY:+/}magg:${SOURCE:-${USER}}-dev
container_name: magg-server-dev
ports:
- "8008:8000"
volumes:
- ./.magg:/home/magg/.magg:rw
volumes:
magg-config:
networks:
magg-network:
driver: bridge