Skip to content

Modify docker-compose to do not map volume #32

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

Merged
merged 2 commits into from
Feb 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Binaries for programs and plugins
bin/
*.exe
*.exe~
*.dll
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ cd golang-rest-api-template
3. Build and run the Docker containers

```bash
make setup && make build && make up
make up
```

Please refer to the [Makefile](./Makefile) if you need to build in the local environment.

### Environment Variables

You can set the environment variables in the `.env` file. Here are some important variables:
Expand Down
Binary file removed bin/server
Binary file not shown.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ services:
dockerfile: Dockerfile
ports:
- 8001:8001
volumes:
- .:/app
depends_on:
- db
- mongo
Expand Down