This repository was archived by the owner on Nov 10, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathcompose.local.yml
More file actions
125 lines (113 loc) · 2.97 KB
/
Copy pathcompose.local.yml
File metadata and controls
125 lines (113 loc) · 2.97 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: "plumber-local"
x-backend-common: &backend-common
image: docker.io/getplumber/backend:${BACKEND_IMAGE_TAG}
env_file: .env
environment:
- JOBS_LISTEN_ADDR=0.0.0.0
- JOBS_LISTEN_PORT=3000
- JOBS_CORS_ORIGIN=http://localhost:3000
- JOBS_FRONTEND_URL=http://localhost:3000
- JOBS_SESSION_TTL=168h
- JOBS_DB_HOST=${JOBS_DB_HOST:-postgres}
- JOBS_DB_PORT=${JOBS_DB_PORT:-5432}
- JOBS_DB_USER=${JOBS_DB_USER:-jobs}
- JOBS_DB_NAME=${JOBS_DB_NAME:-jobs}
- JOBS_DB_SSLMODE=${JOBS_DB_SSLMODE:-disable}
- JOBS_DB_TIMEZONE=${JOBS_DB_TIMEZONE:-Europe/Paris}
- JOBS_API_DOMAIN=http://localhost:3001/api
- LOG_LEVEL=info
- LOG_FORMATTER=text
- JOBS_REDIS_HOST=redis
- JOBS_REDIS_PORT=6379
- JOBS_REDIS_DB=0
- JOBS_REDIS_USER=default
- JOBS_REDIS_SET_NAMESPACES_TTL=30s
- GITLEAKS_PATH=/opt/gitleaks
- FRONTEND_DOMAIN=localhost:3000
- API_DOMAIN=http://localhost:3001
- API_PATH=/api
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- ./.docker/ca-certificates:/usr/local/share/ca-certificates/
networks:
- intranet
services:
############
# Plumber #
############
frontend:
image: docker.io/getplumber/frontend:${FRONTEND_IMAGE_TAG}
env_file: .env
environment:
- FRONTEND_DOMAIN=localhost:3000
- API_DOMAIN=http://localhost:3001
- API_PATH=/api
restart: unless-stopped
volumes:
- ./.docker/ca-certificates:/usr/local/share/ca-certificates/
ports:
- "3000:3000"
networks:
- intranet
backend:
<<: *backend-common
ports:
- "3001:3000"
worker:
<<: *backend-common
command: ["--worker"]
deploy:
mode: replicated
replicas: 5
#####################
# External services #
#####################
redis:
image: redis:8.4
pull_policy: always
restart: unless-stopped
env_file: .env
command:
- redis-server
- --requirepass ${JOBS_REDIS_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "redis-cli -a \"$$JOBS_REDIS_PASSWORD\" ping"]
interval: 5s
timeout: 3s
retries: 20
start_period: 5s
expose:
- "6379"
networks:
- intranet
postgres:
image: postgres:18
pull_policy: always
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql
env_file: .env
environment:
- POSTGRES_USER=${JOBS_DB_USER:-jobs}
- POSTGRES_PASSWORD=${JOBS_DB_PASSWORD}
- POSTGRES_DB=${JOBS_DB_NAME:-jobs}
- PGDATA=/var/lib/postgresql/18/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB -h 127.0.0.1 -p 5432"]
interval: 5s
timeout: 3s
retries: 20
start_period: 10s
expose:
- "5432"
networks:
- intranet
networks:
intranet:
volumes:
postgres-data: