version: "3.9"

services:
  passgen:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: passphrase-generator
    environment:
      # Path to the wordlist inside the container
      WORDLIST: /app/words.txt
      # Port the Go server listens on inside the container
      PORT: "8000"
    ports:
      # host:container
      - "8000:8000"
    restart: unless-stopped
