forked from smdoh/pipebird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (88 loc) · 2.58 KB
/
docker-compose.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
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
version: "3.8"
services:
db:
image: postgres:14.2-alpine
restart: unless-stopped
container_name: pipebird-db
environment:
POSTGRES_DB: ${POSTGRES_DB:-pipebird}
POSTGRES_USER: ${POSTGRES_USER:-pipebird}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pipebird}
PGDATA: /data/postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 5s
timeout: 5s
retries: 60
volumes:
- ${PIPEBIRD_VOLUME_PATH:-/dev/sdf/data/postgres}:/data/postgres
networks:
- pipebird-network
api:
build: .
ports:
- ${PORT}:${PORT}
depends_on:
- db
- temporal
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER:-pipebird}:${POSTGRES_PASSWORD:-pipebird}@db:5432/pipebird?connect_timeout=300&schema=public
- SECRET_KEY=${SECRET_KEY}
- PORT=${PORT}
- S3_USER_ACCESS_ID=${S3_USER_ACCESS_ID}
- S3_USER_SECRET_KEY=${S3_USER_SECRET_KEY}
- PROVISIONED_BUCKET_NAME=${PROVISIONED_BUCKET_NAME}
- AWS_REGION=${AWS_REGION}
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- KMS_KEY_ID=${KMS_KEY_ID}
- LICENSE_KEY=${LICENSE_KEY}
- PIPEBIRD_MONITOR_SECRET_KEY=${PIPEBIRD_MONITOR_SECRET_KEY} # loaded from register_license.py
- CONTROL_PLANE_URL=${CONTROL_PLANE_URL:-"https://my.pipebird.com"}
- TEMPORAL_ADDRESS=temporal:7233
networks:
- pipebird-network
temporal:
container_name: temporal
depends_on:
- db
environment:
- DB=postgresql
- DB_PORT=5432
- POSTGRES_USER=${POSTGRES_USER:-pipebird}
- POSTGRES_PWD=${POSTGRES_PASSWORD:-pipebird}
- POSTGRES_SEEDS=db
- DYNAMIC_CONFIG_FILE_PATH=/etc/temporal/config/dynamicconfig/production-sql.yml
image: temporalio/auto-setup:1.17.5
volumes:
- ./dynamicconfig:/etc/temporal/config/dynamicconfig
labels:
kompose.volume.type: configMap
networks:
- pipebird-network
temporal-admin-tools:
container_name: temporal-admin-tools
depends_on:
- temporal
environment:
- TEMPORAL_CLI_ADDRESS=temporal:7233
image: temporalio/admin-tools:1.17.5
stdin_open: true
tty: true
networks:
- pipebird-network
pipebird-admin-ui:
container_name: pipebird-admin-ui
image: pipebird/admin-ui:latest
depends_on:
- api
networks:
- pipebird-network
ports:
- 375:375
environment:
NEXT_PUBLIC_PIPEBIRD_BASE_URL: ${NEXT_PUBLIC_PIPEBIRD_BASE_URL:-http://localhost:$PORT}
PORT: 375
networks:
pipebird-network:
driver: bridge
name: pipebird-network