Repository navigation
Expand file tree
/
Copy pathcompose.yml
More file actions
61 lines (58 loc) · 1.64 KB
/
Copy pathcompose.yml
File metadata and controls
61 lines (58 loc) · 1.64 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
# Deployment setup. See docs/installation.md for first startup.
services:
postgres:
image: postgres:18
container_name: millwright-postgres
environment:
POSTGRES_USER: millwright
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env}
POSTGRES_DB: millwright
volumes:
- db-data:/var/lib/postgresql
healthcheck:
test: ["CMD", "pg_isready", "-U", "millwright", "-d", "millwright"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
server:
container_name: millwright-server
image: ghcr.io/arabcoders/millwright:latest
user: "${UID:-1000}:${GID:-1000}"
depends_on:
postgres:
condition: service_healthy
ports:
- "8000:8000"
environment:
MW_ROLE: server
MW_DATABASE_URL: postgresql+psycopg://millwright:${POSTGRES_PASSWORD}@postgres:5432/millwright
MW_WORKSPACE_DIR: /workspace
UMASK: ${UMASK:-0002}
TZ: ${TZ:-UTC}
volumes:
- ./config:/config
- ./server-data:/data
- "${MEDIA_DIR:?Set MEDIA_DIR in .env}:/media"
- ./workspace:/workspace
restart: unless-stopped
node:
container_name: millwright-node
image: ghcr.io/arabcoders/millwright:latest
user: "${UID:-1000}:${GID:-1000}"
depends_on:
server:
condition: service_healthy
environment:
MW_ROLE: node
MW_NODE_SERVER_URL: http://server:8000
MW_NODE_WORKSPACE_DIR: /workspace
UMASK: ${UMASK:-0002}
TZ: ${TZ:-UTC}
volumes:
- ./node-config:/config
- ./node-data:/data
- ./workspace:/workspace
restart: unless-stopped
volumes:
db-data: