2024-02-24 23:33:41 +08:00
|
|
|
networks:
|
|
|
|
|
goedge:
|
|
|
|
|
external: false
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
mysqld:
|
|
|
|
|
image: mysql:${MYSQL_VERSION}
|
|
|
|
|
container_name: mysqld
|
|
|
|
|
env_file:
|
|
|
|
|
- .env
|
|
|
|
|
networks:
|
|
|
|
|
- goedge
|
2024-07-30 14:30:12 +08:00
|
|
|
command:
|
|
|
|
|
- '--skip-log-bin'
|
2024-02-24 23:33:41 +08:00
|
|
|
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:
|
2024-07-30 14:30:12 +08:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
2024-02-24 23:33:41 +08:00
|
|
|
- ./data/edge-admin/configs:/usr/local/goedge/edge-admin/configs
|
|
|
|
|
- ./data/edge-api/configs:/usr/local/goedge/edge-admin/edge-api/configs
|
|
|
|
|
restart: always
|
2024-07-30 14:30:12 +08:00
|
|
|
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
|
2024-02-24 23:33:41 +08:00
|
|
|
|
|
|
|
|
edge-node:
|
|
|
|
|
image: icodex/edge-node:${VERSION}
|
|
|
|
|
container_name: edge-node
|
2024-07-30 14:30:12 +08:00
|
|
|
environment:
|
|
|
|
|
- ENDPOINTS=http://xxx.com:8001
|
|
|
|
|
- CLUSTERID=xxx
|
|
|
|
|
- SECRET=xxx
|
2024-02-24 23:33:41 +08:00
|
|
|
ports:
|
|
|
|
|
- 80:80/tcp
|
|
|
|
|
- 443:443/tcp
|
2024-07-31 12:29:18 +08:00
|
|
|
- 443:443/udp
|
2024-02-24 23:33:41 +08:00
|
|
|
networks:
|
|
|
|
|
- goedge
|
2024-07-30 14:30:12 +08:00
|
|
|
cap_add:
|
|
|
|
|
- NET_ADMIN
|
2024-02-24 23:33:41 +08:00
|
|
|
volumes:
|
2024-07-30 14:30:12 +08:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
2024-02-24 23:33:41 +08:00
|
|
|
- ./data/edge-node/cache:/opt/cache
|
|
|
|
|
- ./data/edge-node/configs:/usr/local/goedge/edge-node/configs
|
|
|
|
|
restart: always
|
2024-07-30 14:30:12 +08:00
|
|
|
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:
|
2024-07-31 12:29:18 +08:00
|
|
|
- 53:53/tcp
|
2024-07-30 14:30:12 +08:00
|
|
|
- 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
|