question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"docker-compose up -d" works on ubuntu but does not work on mac.

See original GitHub issue

This is the terminal output:

docker-compose up -d unexpected character " \ “” in variable name near “"http://localhost:8080", "https://localhost", "https://localhost:4200", "https://localhost:3000", "https://localhost:8080", "http://dev.app", "https://sta.app", "https://mi.app", "http://local.dockertoolbox.tiangolo.com", "http://localhost.tiangolo.com"]\nPROJECT_NAME=mifarma\nSECRET_KEY=pswd\nFIRST_SUPERUSER=me\nFIRST_SUPERUSER_PASSWORD=pswd\nSMTP_TLS=False\nSMTP_SSL=True\nSMTP_PORT=465\nSMTP_HOST=smt\nSMTP_USER=noreply@miapp.app\nSMTP_PASSWORD=pswd\nEMAILS_FROM_EMAIL=noreply@miapp.app\n\nSENTRY_DSN=\n\n# Flower\nFLOWER_BASIC_AUTH=admin:pswd\n\n# Postgres\nPOSTGRES_SERVER=db\nPOSTGRES_USER=postgres\nPOSTGRES_PASSWORD=password\nPOSTGRES_DB=app\n\n# PgAdmin\nPGADMIN_LISTEN_PORT=5050\nPGADMIN_DEFAULT_EMAIL=myname@gmail.com\nPGADMIN_DEFAULT_PASSWORD=password\n”

The culprit should be in this code (?) even though it works on ubuntu. I’ve cleared the code of confidential and possibly sensible information but no lines have been erased, only modified.

------------------------------------------CODE------------------------------------------

DOMAIN=localhost
# DOMAIN=local.dockertoolbox.tiangolo.com
# DOMAIN=localhost.tiangolo.com
# DOMAIN=mi.app

STACK_NAME=mi-app

TRAEFIK_PUBLIC_NETWORK=traefik-public
TRAEFIK_TAG=jjj.ap
TRAEFIK_PUBLIC_TAG=traefik-public

DOCKER_IMAGE_BACKEND=b_backend
DOCKER_IMAGE_CELERYWORKER=b_celeryworker
DOCKER_IMAGE_FRONTEND=b_frontend

# Backend
BACKEND_CORS_ORIGINS= ["http://172.19.36.52:8080",  "http://localhost:8080", "https://localhost", "https://localhost:4200", "https://localhost:3000", "https://localhost:8080", "http://mi.app", "https://mi.app", "https://mi.app", "http://local.dockertoolbox.tiangolo.com", "http://localhost.tiangolo.com"]
PROJECT_NAME=Oppenheiser
SECRET_KEY=super_secret_key
FIRST_SUPERUSER=god
FIRST_SUPERUSER_PASSWORD=pswd
SMTP_TLS=False
SMTP_SSL=True
SMTP_PORT=465
SMTP_HOST=priv
SMTP_USER=mail
SMTP_PASSWORD=pswd
EMAILS_FROM_EMAIL=email

SENTRY_DSN=

# Flower
FLOWER_BASIC_AUTH=admin:pswd

# Postgres
POSTGRES_SERVER=db
POSTGRES_USER=postgres
POSTGRES_PASSWORD=pswd
POSTGRES_DB=app

# PgAdmin
PGADMIN_LISTEN_PORT=5050
PGADMIN_DEFAULT_EMAIL=miname@gmail.com
PGADMIN_DEFAULT_PASSWORD=psd

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:3
  • Comments:10

github_iconTop GitHub Comments

21reactions
sylvia-shencommented, Oct 22, 2021

Hi, I think docker compose V2 has breaking change 👇 https://docs.docker.com/compose/cli-command/

You can:

  • use new command
$ docker compose

OR

  • disable compose v2
$ docker-compose disable-v2

Hope it helps 😄

12reactions
buschweavercommented, Oct 13, 2021
$ docker -v
Docker version 20.10.8, build 3967b7d
$docker-compose -v
Docker Compose version v2.0.0

The parser doesn’t like the space between each array element.

Do this: VARIABLE=["a","b","c"]

Not this: VARIABLE=["a", "b", "c"]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker compose networking only works on Mac not Ubuntu ...
I get a database which my node API can reach on localhost , and I get a pgadmin, which can connect to the...
Read more >
Overview | Docker Documentation
This page contains summary information about the available options for getting Docker Compose. Installation scenarios . Scenario one: Install Docker Desktop ...
Read more >
docker compose up - Docker Documentation
The docker compose up command aggregates the output of each container (like docker compose logs --follow does). When the command exits, all containers...
Read more >
Try Docker Compose - Docker Documentation
This will create latency and memory usage issues with Redis. ... you can pass the -d flag (for “detached” mode) to docker compose...
Read more >
Use Docker Compose - Docker Documentation
With Compose, we can create a YAML file to define the services and with a single command, can spin everything up or tear...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found