version: '3.2'

services:
  rancher:
    image: rancher/rancher
    restart: unless-stopped
#    ports:
#      - "8080:80"
#      - "8443:443"
  lapi:
    build:
      context: .
      dockerfile: lapi.dockerfile
    restart: unless-stopped
  caddy:
    image: abiosoft/caddy
    restart: unless-stopped
    volumes:
      - ./Caddyfile:/etc/Caddyfile:ro
    ports:
      - 80:80
      - 443:443
    links:
      - lapi
      - rancher

version: "3.2"

services:
  lapi:
    build:
      context: .
      dockerfile: lapi.dockerfile
    restart: unless-stopped
    enviroment:
      - BROKER_HOST: mqtt.lambdaspace.gr
      - BROKER_PORT: 1883
      - MQTT_TOPIC_HACKERS: "lambdaspace/spacestatus/hackers"
      - MQTT_TOPIC_STATS: "lambdaspace/spacestatus/stats"
  caddy:
    image: abiosoft/caddy
    restart: unless-stopped
    volumes:
      - ./Caddyfile:/etc/Caddyfile:ro
    ports:
      - 80:80
      - 443:443
    links:
      - lapi
      - rancher

Add env variables to lapi
feat: Add env variables to lapi
