mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-06 04:51:44 -07:00
chore: use zyclonite/zerotier as a controller image in docker-compose.yml example
This commit is contained in:
parent
bc5d78f3d3
commit
04624d13c8
3 changed files with 4 additions and 23 deletions
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
|
@ -49,14 +49,3 @@ jobs:
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm
|
platforms: linux/amd64,linux/arm64,linux/arm
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.prep_zero-ui.outputs.tags }}
|
tags: ${{ steps.prep_zero-ui.outputs.tags }}
|
||||||
|
|
||||||
- name: Build and push zerotier-controller
|
|
||||||
id: docker_build_zerotier-controller
|
|
||||||
uses: docker/build-push-action@master
|
|
||||||
with:
|
|
||||||
context: ./
|
|
||||||
file: ./docker/zerotier/Dockerfile
|
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm
|
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
|
||||||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/zerotier-controller:latest
|
|
||||||
|
|
|
@ -2,14 +2,14 @@ version: "3.9"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
zerotier:
|
zerotier:
|
||||||
image: dec0dos/zerotier-controller:latest
|
image: zyclonite/zerotier:1.10.0
|
||||||
container_name: zu-controller
|
container_name: zu-controller
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: ./docker/zerotier/Dockerfile
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- controller_data:/var/lib/zerotier-one
|
- controller_data:/var/lib/zerotier-one
|
||||||
|
environment:
|
||||||
|
- ZT_OVERRIDE_LOCAL_CONF=true
|
||||||
|
- ZT_ALLOW_MANAGEMENT_FROM=0.0.0.0/0
|
||||||
expose:
|
expose:
|
||||||
- "9993/tcp"
|
- "9993/tcp"
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
FROM zyclonite/zerotier:latest
|
|
||||||
|
|
||||||
RUN echo "{\"settings\": {\"portMappingEnabled\": true,\"softwareUpdate\": \"disable\",\"allowManagementFrom\": [\"0.0.0.0/0\"]}}" > /var/lib/zerotier-one/local.conf
|
|
||||||
|
|
||||||
EXPOSE 9993/tcp
|
|
||||||
EXPOSE 9993/udp
|
|
||||||
|
|
||||||
ENTRYPOINT ["zerotier-one"]
|
|
Loading…
Add table
Add a link
Reference in a new issue