Skip to content

Instantly share code, notes, and snippets.

@jackawatts
Last active September 19, 2024 12:41
Show Gist options
  • Save jackawatts/90ddc46799d70e5e6209f6fd0a7c21bb to your computer and use it in GitHub Desktop.
Save jackawatts/90ddc46799d70e5e6209f6fd0a7c21bb to your computer and use it in GitHub Desktop.

Compose a basic Azure .NET dev env

name: project-name-dev
services:
  seq:
    image: datalust/seq:latest
    container_name: project-name-seq
    environment:
      ACCEPT_EULA: "Y"
    ports:
      - 5341:80
  azurite:
    image: mcr.microsoft.com/azure-storage/azurite
    container_name: project-name-azurite
    ports:
      - 10000:10000
      - 10001:10001
  sql:
    image: mcr.microsoft.com/mssql/server:2022-latest
    container_name: project-name-sql
    environment:
      SA_PASSWORD: "7d5L2%4d1gLwG7GI"
      ACCEPT_EULA: "Y"
    ports:
      - 1433:1433
    
networks:
  default:
    name: project-name-net

Compose: build -> create -> start in background

docker compose up -d

Updating old containers

docker images
// latest by default
docker pull <image>
// list all containers
docker ps -a
// remove the old container
docker rm <containerid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment