Skip to content

Commit

Permalink
chore: use ferretdb with one postgres for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Kühnlein committed Jan 26, 2024
1 parent 64e391b commit 5c2912d
Showing 1 changed file with 25 additions and 19 deletions.
44 changes: 25 additions & 19 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,31 @@ services:
- 5432
volumes:
- postgresql:/var/lib/postgresql/data
# ferretdb:
# container_name: ferretdb
# depends_on:
# - postgresql
# image: ghcr.io/ferretdb/ferretdb
# restart: on-failure
# ports:
# - 27017:27017
# environment:
# - FERRETDB_POSTGRESQL_URL=postgres://temporal:temporal@postgresql:5432/ferretdb
# networks:
# - temporal-network
mongo:
container_name: mongo
image: mongo
restart: always
postgresql-ferretdb:
container_name: ferretdb-postgresql
environment:
MONGO_INITDB_ROOT_USERNAME: datadolphin
MONGO_INITDB_ROOT_PASSWORD: datadolphin
POSTGRES_PASSWORD: ferretdb
POSTGRES_USER: ferretdb
POSTGRES_DB: ferretdb
image: postgres:${POSTGRESQL_VERSION}
networks:
- ferretdb-network
expose:
- 5432
volumes:
- postgresql-ferretdb:/var/lib/postgresql/data
ferretdb:
container_name: ferretdb
depends_on:
- postgresql
image: ghcr.io/ferretdb/ferretdb
restart: on-failure
ports:
- 27017:27017
environment:
- FERRETDB_POSTGRESQL_URL=postgres://ferretdb:ferretdb@postgresql-ferretdb:5432/ferretdb
networks:
- temporal-network
- ferretdb-network
temporal:
container_name: temporal
depends_on:
Expand Down Expand Up @@ -99,6 +101,10 @@ networks:
temporal-network:
driver: bridge
name: temporal-network
ferretdb-network:
driver: bridge
name: ferretdb-network
volumes:
miniostorage:
postgresql:
postgresql-ferretdb:

0 comments on commit 5c2912d

Please sign in to comment.