Skip to content

Commit 6c6c611

Browse files
committed
add splt setup
1 parent 5fbcefa commit 6c6c611

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed

docker-compose.webapp.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
x-env: &webapp-env
2+
LOGIN_ORIGIN: https://${TRIGGER_DOMAIN:?Please set this in your .env file}
3+
APP_ORIGIN: https://${TRIGGER_DOMAIN}
4+
DEV_OTEL_EXPORTER_OTLP_ENDPOINT: https://${TRIGGER_DOMAIN}/otel
5+
6+
volumes:
7+
postgres-data:
8+
redis-data:
9+
10+
networks:
11+
default:
12+
13+
services:
14+
webapp:
15+
image: ghcr.io/triggerdotdev/trigger.dev:self-host-rc.2
16+
restart: unless-stopped
17+
env_file:
18+
- .env
19+
environment:
20+
<<: *webapp-env
21+
ports:
22+
- 3040:3030
23+
depends_on:
24+
- postgres
25+
- redis
26+
networks:
27+
- default
28+
29+
postgres:
30+
image: postgres:16
31+
restart: unless-stopped
32+
volumes:
33+
- redis-data:/var/lib/postgresql/data/
34+
env_file:
35+
- .env
36+
networks:
37+
- default
38+
ports:
39+
- 5433:5432
40+
41+
redis:
42+
image: redis:7
43+
restart: unless-stopped
44+
volumes:
45+
- redis-data:/data
46+
networks:
47+
- default
48+
ports:
49+
- 6389:6379

docker-compose.worker.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
x-env: &worker-env
2+
PLATFORM_HOST: ${TRIGGER_DOMAIN:?Please set this in your .env file}
3+
PLATFORM_WS_PORT: 443
4+
SECURE_CONNECTION: "true"
5+
OTEL_EXPORTER_OTLP_ENDPOINT: https://${TRIGGER_DOMAIN}/otel
6+
7+
networks:
8+
default:
9+
10+
services:
11+
docker-provider:
12+
image: ghcr.io/triggerdotdev/provider/docker:self-host-rc.2
13+
restart: unless-stopped
14+
volumes:
15+
- /var/run/docker.sock:/var/run/docker.sock
16+
user: root
17+
networks:
18+
- default
19+
env_file:
20+
- .env
21+
environment:
22+
<<: *worker-env
23+
PLATFORM_SECRET: $PROVIDER_SECRET
24+
25+
coordinator:
26+
image: ghcr.io/triggerdotdev/coordinator:self-host-rc.2
27+
restart: unless-stopped
28+
volumes:
29+
- /var/run/docker.sock:/var/run/docker.sock
30+
user: root
31+
networks:
32+
- default
33+
ports:
34+
- 9020:9020
35+
env_file:
36+
- .env
37+
environment:
38+
<<: *worker-env
39+
PLATFORM_SECRET: $COORDINATOR_SECRET

0 commit comments

Comments
 (0)