Comments (2)
@andrewzolotukhin Hi, In the next version v0.2.2 you can pass TRAEFIK_SSL_PORT
and TRAEFIK_PORT
by default they are 443 and 80 but you can override, make sure to delete the /etc/dokploy/traefik/traefik.yml if you have installed dokploy, in the case you don't have just run the following command the full script for this case can be this:
Just don't forget to assign values to the enviroment variables, I tested and it was working so let me know!
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" >&2
exit 1
fi
# check if is Mac OS
if [ "$(uname)" = "Darwin" ]; then
echo "This script must be run on Linux" >&2
exit 1
fi
# check if is running inside a container
if [ -f /.dockerenv ]; then
echo "This script must be run on Linux" >&2
exit 1
fi
# check if something is running on port 80
if ss -tulnp | grep ':80 ' >/dev/null; then
echo "Error: something is already running on port 80" >&2
exit 1
fi
# check if something is running on port 443
if ss -tulnp | grep ':443 ' >/dev/null; then
echo "Error: something is already running on port 443" >&2
exit 1
fi
command_exists() {
command -v "$@" > /dev/null 2>&1
}
if command_exists docker; then
echo "Docker already installed"
else
curl -sSL https://get.docker.com | sh
fi
docker swarm leave --force 2>/dev/null
advertise_addr=$(curl -s ifconfig.me)
docker swarm init --advertise-addr $advertise_addr
echo "Swarm initialized"
docker network rm -f dokploy-network 2>/dev/null
docker network create --driver overlay --attachable dokploy-network
echo "Network created"
mkdir -p /etc/dokploy
chmod -R 777 /etc/dokploy
docker pull dokploy/dokploy:latest
# Installation
docker service create \
--name dokploy \
--replicas 1 \
--network dokploy-network \
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
--mount type=bind,source=/etc/dokploy,target=/etc/dokploy \
--publish published=3000,target=3000,mode=host \
--update-parallelism 1 \
--update-order stop-first \
-e TRAEFIK_SSL_PORT=<Value For SSL PORT eg(444)> \
-e TRAEFIK_PORT=<VALUE FOR TRAEFIK HTTP PORT eg(81)> \
dokploy/dokploy:latest
GREEN="\033[0;32m"
YELLOW="\033[1;33m"
BLUE="\033[0;34m"
NC="\033[0m" # No Color
echo ""
printf "${GREEN}Congratulations, Dokploy is installed!${NC}\n"
printf "${BLUE}Wait 15 seconds for the server to start${NC}\n"
printf "${YELLOW}Please go to http://${advertise_addr}:3000${NC}\n\n"
echo ""
from dokploy.
Hi, thank you very much for such a quick and comprehensive answer!
from dokploy.
Related Issues (20)
- private docker image with docker-compose issue
- Feature: Isolate Containers by Project HOT 1
- Support for folder deployment, and Drag n Drop HOT 2
- Unable to connect to server - Operation timed out error HOT 2
- getaddrinfo ENOTFOUND dokploy-redis HOT 8
- [Feature Request] Add Podman container runtime support HOT 1
- License Agreement - Restrictions on Features HOT 3
- Multi-server feature HOT 2
- An error occurred enable self hosted registry HOT 9
- Cant monitor containers deployed with docker-compose. HOT 3
- Support cloudflare origin certificate HOT 4
- Add commit hash and commit message in the deployment list HOT 4
- Backup DB (mongodb) to S3 errors HOT 3
- 400 Oops, something went wrong. HOT 18
- Backup with version control HOT 1
- All pop-ups, when the confirmation behavior occurs successfully, the pop-ups are not closed
- dockerfile does not complete, saying "Docker Deployed" HOT 11
- When Cloudflare's CDN is enabled, the second project displays a 404 error. The issue is resolved when the CDN is disabled. HOT 2
- Database backup wonβt stop after deleting it HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokploy.