version: '3.3'
services:
  guacd:
    container_name: guacd
    image: dushixiang/guacd:latest
    ports:
      - "172.17.0.1:4822:4822" 
    volumes:
      - ./data:/usr/local/next-terminal/data
    restart: always

  next-terminal:
    container_name: nexter
    image: dushixiang/next-terminal:latest
    environment:
      DB: sqlite
      GUACD_HOSTNAME: 172.17.0.1
    network_mode: host
    volumes:
      - /etc/localtime:/etc/localtime
      - ./data:/usr/local/next-terminal/data
    restart: always