Skip to content

Commit

Permalink
Rename docker compose to compose
Browse files Browse the repository at this point in the history
* Add compose overrides for persistance compose
  • Loading branch information
tarsil committed May 2, 2024
1 parent 1258dc7 commit d002904
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
59 changes: 59 additions & 0 deletions compose.overrides.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
services:
db:
restart: always
image: postgres:12.3
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "esmerald"
expose:
- "5432"
volumes:
- "esmerald:/var/lib/postgresql/data"
command: >-
--jit=false
ports:
- "5432:5432"

redis:
restart: always
image: redis:latest
ports:
- "6379:6379"
expose:
- "6379"

mongodb:
restart: always
image: mongo:latest
container_name: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: mongoadmin
MONGO_INITDB_DATABASE: mongodb
volumes:
- "mongo_esmerald_db_data:/data/db"
expose:
- 27017
ports:
- 27017:27017

mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ENABLE_ADMIN: 'true'
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: mongoadmin
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: password

volumes:
esmerald:
external: true
mongo_esmerald_db_data:
external: true
1 change: 0 additions & 1 deletion docker-compose.yml → compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.8"
services:
db:
restart: always
Expand Down

0 comments on commit d002904

Please sign in to comment.