-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.webapp.yml
65 lines (59 loc) · 1.47 KB
/
docker-compose.webapp.yml
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
x-env: &webapp-env
LOGIN_ORIGIN: https://${TRIGGER_DOMAIN:?Please set this in your .env file}
APP_ORIGIN: https://${TRIGGER_DOMAIN}
DEV_OTEL_EXPORTER_OTLP_ENDPOINT: https://${TRIGGER_DOMAIN}/otel
ELECTRIC_ORIGIN: http://electric:3000
volumes:
postgres-data:
redis-data:
networks:
default:
services:
webapp:
image: ghcr.io/triggerdotdev/trigger.dev:${TRIGGER_IMAGE_TAG:-v3}
restart: ${RESTART_POLICY:-unless-stopped}
env_file:
- .env
environment:
<<: *webapp-env
ports:
- ${WEBAPP_PUBLISH_IP:-127.0.0.1}:3040:3030
depends_on:
- postgres
- redis
networks:
- default
postgres:
image: postgres:${POSTGRES_IMAGE_TAG:-16}
restart: ${RESTART_POLICY:-unless-stopped}
volumes:
- postgres-data:/var/lib/postgresql/data/
env_file:
- .env
networks:
- default
ports:
- ${DOCKER_PUBLISH_IP:-127.0.0.1}:5433:5432
command:
- -c
- wal_level=logical
redis:
image: redis:${REDIS_IMAGE_TAG:-7}
restart: ${RESTART_POLICY:-unless-stopped}
volumes:
- redis-data:/data
networks:
- default
ports:
- ${DOCKER_PUBLISH_IP:-127.0.0.1}:6389:6379
electric:
image: electricsql/electric:${ELECTRIC_IMAGE_TAG:-latest}
restart: ${RESTART_POLICY:-unless-stopped}
environment:
DATABASE_URL: $DATABASE_URL
networks:
- default
depends_on:
- postgres
ports:
- ${DOCKER_PUBLISH_IP:-127.0.0.1}:3061:3000