Skip to content

Commit

Permalink
Simplify docker compose + create internal one (NangoHQ#1316)
Browse files Browse the repository at this point in the history
* Simplify docker compose + create internal one

* Move docker-compose.dev.yaml to dev folder
  • Loading branch information
bastienbeurier authored Nov 24, 2023
1 parent 3404517 commit efbbb6b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 39 deletions.
34 changes: 34 additions & 0 deletions dev/docker-compose.dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: '3.9'
services:
nango-db:
image: postgres
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

temporal:
image: temporalio/auto-setup
container_name: temporal
depends_on:
- nango-db
environment:
- DB=postgresql
- DB_PORT=5432
- POSTGRES_USER=nango
- POSTGRES_PWD=nango
- POSTGRES_SEEDS=nango-db
ports:
- 7233:7233
networks:
- nango

networks:
nango:
37 changes: 0 additions & 37 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ services:
image: nangohq/nango-server
container_name: nango-server
environment:
- TEMPORAL_ADDRESS=temporal:7233
- NANGO_DB_MIGRATION_FOLDER=/usr/nango-server/src/packages/shared/lib/db/migrations
- NANGO_ENCRYPTION_KEY=${NANGO_ENCRYPTION_KEY}
- NANGO_DB_USER=${NANGO_DB_USER}
Expand All @@ -45,41 +44,5 @@ services:
networks:
- nango

nango-worker:
image: nangohq/nango-worker
container_name: nango-worker
restart: always
ports:
- '${WORKER_PORT:-3004}:${WORKER_PORT:-3004}'
environment:
- TEMPORAL_ADDRESS=temporal:7233
- 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}
depends_on:
- nango-db
- temporal
networks:
- nango

temporal:
image: temporalio/auto-setup
container_name: temporal
depends_on:
- nango-db
environment:
- DB=postgresql
- DB_PORT=5432
- POSTGRES_USER=nango
- POSTGRES_PWD=nango
- POSTGRES_SEEDS=nango-db
ports:
- 7233:7233
networks:
- nango

networks:
nango:
2 changes: 0 additions & 2 deletions docs-v2/use/local.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ Check out the `.env.example` file for all configuration options.

Nango uses the following ports (all overridable with `docker-compose.yaml` or env vars):
- Server: 3003
- Worker: 3004
- Postgres: 5432
- Temporal: 7233

0 comments on commit efbbb6b

Please sign in to comment.