BashfulBandit / docker-traefik

GNU General Public License v3.0
14 stars 3 forks source link

Issue with .env file when in container mode. #1

Open BashfulBandit opened 5 years ago

BashfulBandit commented 5 years ago

Seems to be an issue with the generated .env file when running in container mode. Seems to be related to the export variables.

kgulle commented 4 years ago

Are you ready to start? [y/N] n node1@node1:~/test6/docker-traefik$ bash bin/start.sh

Hello, this script is used for starting a Traefik Service in a Docker Environment, either using Docker Swarm Mode or just as a Docker Container. It is going to take you through some prompts to make sure to use the properly configuration for your environment and also set up some files for your Docker Service.

Are you ready to start? [y/N] y

Awesome! Next, we will determine if you want to run this in Docker Swarm Mode or as just a Docker Container. At any time during this, you can always Press Ctrl-C to stop this script.

Do you want to run this in Docker Swarm Mode? [y/N] n What do you want to call your Docker Container? test1

Okay, now we need to gather a little bit more information before we can start the Traefik Docker Service.

First, we need to know your domain name. An example would be example.com. In order for Traefik to work properly, you will need to make sure you have a DNS record pointing your domain to the public IP address of the server that you are running Traefik on. This setup also will have the Traefik Dashboard setup to run at traefik.domain.tld, so make sure if you want the dashboard functionality to have a DNS record for the subdomain traefik.domain.tld.

What is your domain name? du.edu What is your email address? kenan@kenan.com ERROR: In file ./.env: environment variable name 'export DOMAIN' may not contain whitespace.

.env file

DOCKER_START_COMMAND="docker-compose --file docker-compose.container.yml up -d"
DOCKER_STOP_COMMAND="docker-compose --file docker-compose.container.yml down"
COMPOSE_FILE="docker-compose.container.yml"
SERVICE_NAME=test1
export DOMAIN=du.edu
export EMAIL=kenan@kenan.com