Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local docker compose #185

Merged
merged 5 commits into from
Mar 5, 2024
Merged

Local docker compose #185

merged 5 commits into from
Mar 5, 2024

Conversation

AlecM33
Copy link
Owner

@AlecM33 AlecM33 commented Mar 4, 2024

Provides the ability to spin up two node.js web servers and the redis server simply by running docker compose up, provided the client has installed docker desktop.

image

Google Cloud Run doesn't seem to support docker-compose, which complicated my effort to utilize a single Dockerfile for the dev and prod environments. Thus I chose to create a separate Dockerfile named Dockerfile.dev for use with the compose.yml. Perhaps this is not best practice, but it's not so bad for this app's simple architecture and environments.

Also, annoyingly, there is a bug with docker-compose that prevents me from simply scaling a single web service using replicas and a range of ports (see docker/compose#7188). Thus I had to create two services and bind them individually to different ports.

@AlecM33 AlecM33 merged commit 613a16e into master Mar 5, 2024
3 checks passed
@AlecM33 AlecM33 deleted the local-docker-compose branch March 5, 2024 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant