Last active
December 16, 2022 04:09
-
-
Save maxkoshevoi/8be077fb9dba2f851d3c477c50cf5489 to your computer and use it in GitHub Desktop.
Docker local environment setup
This file contains 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
# Postgres. ConnectionString: Host=localhost;Port=5432;Database=YourDbName;Username=guest;Password=guest | |
docker run --name postgres -d -p 5432:5432 -e POSTGRES_PASSWORD=guest -e POSTGRES_USER=guest -e POSTGRES_DB=YourDbName -v $HOME/docker/volumes/postgres:/var/lib/postgresql/data postgres | |
# MsSQL. ConnectionString: Initial Catalog=YourDbName;Server=localhost;Persist Security Info=False;User ID=sa;Password=Guest123!;Connection Timeout=30; | |
docker run --name mssql -d -p 1433:1433 -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=Guest123!' -v sqlvolume:/var/opt/mssql mcr.microsoft.com/mssql/server:2019-latest | |
# RabbitMQ for MassTransit. ConnectionString: amqp://localhost:5672. Management portal: localhost:15672 (login and password: guest) | |
docker run --name rabbitmq -d -p 15672:15672 -p 5672:5672 masstransit/rabbitmq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment