docker compose file - ``` version: "3.4" service...
# general
u
docker compose file -
Copy code
version: "3.4"

services:
  netmaker:
    container_name: netmaker
    image: gravitl/netmaker:v0.9.4
    volumes:
      - /usr/bin/wg:/usr/bin/wg
      - ./sqldata:/root/data
    cap_add: 
      - NET_ADMIN
    restart: always
    privileged: true
    environment:
      SERVER_HOST: "45.93.119.27"
      SERVER_API_CONN_STRING: "api.netmaker.example.com:443"
      SERVER_GRPC_CONN_STRING: "grpc.netmaker.example.com:80"
      GRPC_SSL: "off"
      DNS_MODE: "off"
      SERVER_HTTP_HOST: "api.netmaker.example.com"
      SERVER_GRPC_HOST: "grpc.netmaker.example.com"
      API_PORT: "8081"
      GRPC_PORT: "50051"
      CLIENT_MODE: "on"
      MASTER_KEY: "stripped"
      SERVER_GRPC_WIREGUARD: "off"
      CORS_ALLOWED_ORIGIN: "*"
      DISPLAY_KEYS: "on"
      DATABASE: "sqlite"
      NODE_ID: "netmaker-server-1"
    ports:
      - "51821-51830:51821-51830/udp"
    #  - "8081:8081"
      - "50051:50051"
    networks:
      - default
      - global

  netmaker-ui:
    container_name: netmaker-ui
    depends_on:
      - netmaker
    image: gravitl/netmaker-ui:v0.9.3
    links:
      - "netmaker:api"
    #ports:
    #  - "8082:80"
    environment:
      BACKEND_URL: "https://api.netmaker.example.com"
    restart: always
    networks:
     - default
     - global

  netmaker-grpc-proxy:
    image: caddy:latest
    network_mode: host
#    networks:
#      - default
#      - global
    restart: unless-stopped
    container_name: netmaker-grpc-proxy
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
#    ports:
#      - 8080:80

networks:
  global:
    external: true