forked from NangoHQ/nango
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
88 lines (84 loc) · 3.02 KB
/
docker-compose.yaml
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
version: '3.9'
services:
nango-db:
image: postgres:16.0-alpine
container_name: nango-db
environment:
POSTGRES_PASSWORD: nango
POSTGRES_USER: nango
POSTGRES_DB: nango
ports:
- '${NANGO_DB_PORT:-5432}:5432'
volumes:
- ./nango-data:/var/lib/postgresql/data
networks:
- nango
nango-server:
image: nangohq/nango-server:hosted
container_name: nango-server
platform: linux/amd64
environment:
- NANGO_DB_MIGRATION_FOLDER=/usr/nango-server/src/packages/database/lib/migrations
- NANGO_ENCRYPTION_KEY=${NANGO_ENCRYPTION_KEY}
- NANGO_DB_USER=${NANGO_DB_USER}
- NANGO_DB_PASSWORD=${NANGO_DB_PASSWORD}
- NANGO_DB_HOST=${NANGO_DB_HOST}
- NANGO_DB_NAME=${NANGO_DB_NAME}
- NANGO_DB_SSL=${NANGO_DB_SSL}
- NANGO_DB_ADDITIONAL_SCHEMAS=${NANGO_DB_ADDITIONAL_SCHEMAS}
- NANGO_DB_POOL_MIN=${NANGO_DB_POOL_MIN}
- NANGO_DB_POOL_MAX=${NANGO_DB_POOL_MAX}
- RECORDS_DATABASE_URL=${RECORDS_DATABASE_URL:-postgresql://nango:nango@nango-db:5432/nango}
- SERVER_PORT=${SERVER_PORT}
- NANGO_SERVER_URL=${NANGO_SERVER_URL:-http://localhost:3003}
- NANGO_DASHBOARD_USERNAME=${NANGO_DASHBOARD_USERNAME}
- NANGO_DASHBOARD_PASSWORD=${NANGO_DASHBOARD_PASSWORD}
- LOG_LEVEL=${LOG_LEVEL:-info}
- TELEMETRY=${TELEMETRY}
- NANGO_SERVER_WEBSOCKETS_PATH=${NANGO_SERVER_WEBSOCKETS_PATH}
- NANGO_LOGS_ENABLED=${NANGO_LOGS_ENABLED:-false}
- NANGO_LOGS_ES_URL=${NANGO_LOGS_ES_URL:-http://nango-elasticsearch:9200}
- NANGO_LOGS_ES_USER=${NANGO_LOGS_ES_USER}
- NANGO_LOGS_ES_PWD=${NANGO_LOGS_ES_PWD}
volumes:
- './packages/shared/providers.yaml:/usr/nango-server/src/packages/shared/providers.yaml'
restart: always
ports:
- '${SERVER_PORT:-3003}:${SERVER_PORT:-3003}'
depends_on:
- nango-db
# - nango-elasticsearch
networks:
- nango
nango-redis:
image: redis:7.2.4
container_name: nango-redis
ports:
- '6379:6379'
networks:
- nango
#
# Optional dependency
# To load elasticsearch, set NANGO_LOGS_ENABLED=true in nango-server and uncomment this dependency
# nango-elasticsearch:
# image: elasticsearch:8.13.0
# container_name: nango-elasticsearch
# ulimits:
# memlock:
# soft: -1
# hard: -1
# volumes:
# - elasticsearch-data1:/usr/share/elasticsearch/data
# ports:
# - 9500:9200
# - 9600:9300
# environment:
# - discovery.type=single-node
# - xpack.security.enabled=false
# networks:
# - nango
networks:
nango:
volumes:
elasticsearch-data1:
driver: local