Simple api for managing posts
In "Production" Mode:
- Open terminal in root directory
- Run
docker-compose --env-file ./docker.env up
- Wait until api is available
- Go to
localhost:8000
- Work...
CTRL+C
in terminal to shutdown apidocker-compose down
stops docker containers
In "Development" Mode:
- Open terminal in root directory
- Run
docker-compose --env-file ./docker.env up database
, if you change env, make sure you update them inlaunchSettings.json
also update ApplicationDbContextDesignTimeFactory - Wait until postgres is available
- Start api from your IDE
- Work...
CTRL+C
in terminal to disconnect from docker containerdocker-compose down
stops docker container
- Docker & Docker-Compose