forked from tinkerhub/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (94 loc) · 2.75 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
91
92
93
94
95
version: '3.8'
services:
api:
image: akhilmhdh/tinkerhub-platform:v1
container_name: platform-api
build:
context: .
dockerfile: ./apps/api/Dockerfile
ports:
- 8000:8000
depends_on:
db:
condition: service_healthy
environment:
- PORT=${API_PORT}
- DATABASE_URL=postgresql://${API_DB_USER}:${API_DB_PASS}@db:5432/${API_DB_NAME}
- SUPERTOKENS_URI=${SUPERTOKENS_URI}
- SUPERTOKENS_API_KEY=${SUPERTOKENS_API_KEY}
- APP_NAME=${API_SUPERTOKENS_APP_NAME}
- SUPERTOKENS_API_DOMAIN=${API_SUPERTOKENS_API_DOMAIN}
- SUPERTOKENS_WEBSITE_DOMAIN=${API_SUPERTOKENS_WEBSITE_DOMAIN}
- SUPERTOKENS_PATH=${API_SUPERTOKENS_PATH}
- MSG91_API_DOMAIN=${API_MSG91_API_DOMAIN}
- MSG91_SENDER_ID=${API_MSG91_SENDER_ID}
- MSG91_FLOW_ID=${API_MSG91_FLOW_ID}
- MSG91_SHORT_URL=${API_MSG91_SHORT_URL}
- MSG91_AUTH_KEY=${API_MSG91_AUTH_KEY}
db:
image: postgres:14
container_name: platform-db
volumes:
- ./tmp/pg:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${API_DB_USER}
- POSTGRES_PASSWORD=${API_DB_PASS}
- POSTGRES_DB=${API_DB_NAME}
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${API_DB_USER} -d ${API_DB_NAME}']
interval: 5s
timeout: 5s
retries: 5
ports:
- 5432:5432
nocodb:
image: nocodb/nocodb:0.99.0
container_name: platform-noco
ports:
- '8080:8080'
restart: always
networks:
- app_network
- default
volumes:
- './tmp/noco:/usr/app/data'
stdb:
image: postgres:14
container_name: platform-stdb
environment:
- POSTGRES_USER=${SUPERTOKENS_DB_USER}
- POSTGRES_PASSWORD=${SUPERTOKENS_DB_PASS}
- POSTGRES_DB=${SUPERTOKENS_DB_NAME}
networks:
- app_network
restart: unless-stopped
volumes:
- './tmp/st:/usr/app/data'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${SUPERTOKENS_DB_USER} -d ${SUPERTOKENS_DB_NAME}']
interval: 5s
timeout: 5s
retries: 5
supertokens:
image: registry.supertokens.io/supertokens/supertokens-postgresql:4.2
container_name: platform-st
depends_on:
- stdb
ports:
- 3567:3567
environment:
POSTGRESQL_CONNECTION_URI: 'postgresql://${SUPERTOKENS_DB_USER}:${SUPERTOKENS_DB_PASS}@stdb:5432/${SUPERTOKENS_DB_NAME}'
API_KEYS: ${SUPERTOKENS_API_KEY}
networks:
- app_network
- default
restart: unless-stopped
healthcheck:
test: >
bash -c 'exec 3<>/dev/tcp/127.0.0.1/3567 && echo -e "GET /hello HTTP/1.1\r\nhost: 127.0.0.1:3567\r\nConnection: close\r\n\r\n" >&3 && cat <&3 | grep "Hello"'
interval: 10s
timeout: 5s
retries: 5
networks:
app_network:
driver: bridge