Skip to content

Commit

Permalink
add docker compose documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldiwildan77 committed Jul 7, 2021
1 parent f3d1ad8 commit bd74e7c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@

# build output
bin/

# golang module
go.sum
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ This repository is for update notifications from the rust game which helps serve
2. Build the project using command `docker build . `
3. Start the project using command `docker run -h localhost -p 8000:8000 -e PORT=8000 rust-updater-api_app:latest`

### Docker Compose:
1. Make sure you have installed docker and docker-compose on your machine.
2. Start the container (detached) using command `docker-compose up -d --build`

## Contact
If you need more information please join the discord: https://discord.chroma-gaming.xyz/

Expand Down
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: "3.7"

services:
app:
container_name: "rust-updater"
image: ghcr.io/aldiwildan77/rust-updater:latest
environment:
- PORT=8000
ports:
- 8000:8000
restart: on-failure
networks:
- backend

networks:
backend:

0 comments on commit bd74e7c

Please sign in to comment.