networks: goedge: external: false services: mysqld: image: mysql:${MYSQL_VERSION} container_name: mysqld env_file: - .env networks: - goedge command: - '--skip-log-bin' volumes: - ./data/db/mysql:/var/lib/mysql:rw restart: always edge-admin: image: icodex/edge-admin:${VERSION} container_name: edge-admin ports: - 7788:7788/tcp - 8001:8001/tcp networks: - goedge volumes: - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro - ./data/edge-admin/configs:/usr/local/goedge/edge-admin/configs - ./data/edge-api/configs:/usr/local/goedge/edge-admin/edge-api/configs restart: always depends_on: - mysqld edge-user: image: icodex/edge-user:${VERSION} container_name: edge-user environment: - ENDPOINTS=http://xxx.com:8001 - NODEID=xxx - SECRET=xxx ports: - 8080:80/tcp networks: - goedge cap_add: - NET_ADMIN volumes: - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro - ./data/edge-user/configs:/usr/local/goedge/edge-user/configs restart: always depends_on: - edge-admin - mysqld edge-node: image: icodex/edge-node:${VERSION} container_name: edge-node environment: - ENDPOINTS=http://xxx.com:8001 - CLUSTERID=xxx - SECRET=xxx ports: - 80:80/tcp - 443:443/tcp - 443:443/udp networks: - goedge cap_add: - NET_ADMIN volumes: - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro - ./data/edge-node/cache:/opt/cache - ./data/edge-node/configs:/usr/local/goedge/edge-node/configs restart: always depends_on: - edge-admin - mysqld edge-dns: image: icodex/edge-dns:${VERSION} container_name: edge-dns environment: - ENDPOINTS=http://xxx.com:8001 - NODEID=xxx - SECRET=xxx ports: - 53:53/tcp - 53:53/udp networks: - goedge cap_add: - NET_ADMIN volumes: - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro - ./data/edge-dns/configs:/usr/local/goedge/edge-dns/configs restart: always depends_on: - edge-admin - mysqld