Last active
February 14, 2024 20:59
-
-
Save Lostovayne/eecbb39be9367013e63548460777df3a to your computer and use it in GitHub Desktop.
Archivo de docker para imagenes de base de datos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
mongo-db: | |
image: mongo:6.0.6 | |
restart: always | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER} | |
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS} | |
volumes: | |
- ./mongo:/data/db | |
ports: | |
- 27017:27017 | |
postgres-db: | |
image: postgres:15.3 | |
restart: always | |
environment: | |
POSTGRES_USER: ${POSTGRES_USER} | |
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | |
POSTGRES_DB: ${POSTGRES_DB} | |
volumes: | |
- ./postgres:/var/lib/postgresql/data | |
ports: | |
- 5432:5432 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment