Skip to content

Commit

Permalink
Additions to the docker-compose setup docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Fomin committed Jun 25, 2021
1 parent 49b8073 commit e6b7295
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 13 additions & 1 deletion docker_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,26 @@ edit env_local.list (found in the docker_example directory) and use your own val

## Run it on your local machine as a daemon

### Docker Run

cd into the docker_example directory in this repo and run the following. You only need to be in this directory because we used a relative path to the env_local.list file.

`docker run -p 8885:3000 --name klaxon_local --env-file ./env_local.list --restart unless-stopped -d klaxon`

### Docker Compose

to use docker-compose modify all values in docker.compose.yml to your liking and run the following command in the docker_example directory.

`docker-compose up`

Important values to change in docker-compose.yml:

- db -> environment -> POSTGRES_PASSWORD
- app -> ports

## View the app

Go to your browser and hit `127.0.0.1:8885` .


## Alternatively use docker-compose

6 changes: 4 additions & 2 deletions docker_example/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ services:
- ./db:/var/lib/postgresql
app:
links:
- db
- db
depends_on:
- db
image: themarshallproject/klaxon
env_file:
- env_local.list
ports:
- 3000:3000
- change_me:3000
# Example:
# - 8885:3000

0 comments on commit e6b7295

Please sign in to comment.