Skip to content

Commit

Permalink
docker compose update
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Jun 27, 2019
1 parent 5c2cbe8 commit 5c260d5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,18 @@ ___
Log in (default credentials: admin / admin)

## Quick start as a docker container

### With a SQLite database

sudo docker build -t enms -f docker/Dockerfile .
sudo docker run -it -d -p 5000:5000 --name enms enms
Log in (default credentials: admin / admin)

### With a PostgreSQL database

sudo docker-compose -f docker/docker-compose.yml up -d
Log in (default credentials: admin / admin)

## Deploy eNMS in production

In production, eNMS is configured to use a PostgreSQL database and a Hashicorp Vault (storage of network credentials).
Expand Down
5 changes: 4 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ services:
restart: always
image: postgres:latest
environment:
- ENMS_DATABASE_URL=postgresql://enms:enms@db:5432/enms
- POSTGRES_USER=enms
- POSTGRES_PASSWORD=enms
- POSTGRES_DB=enms
expose:
- 5432
networks:
- db_network
enms:
restart: always
environment:
- ENMS_DATABASE_URL=postgresql://enms:enms@db:5432/enms
- ENMS_SECRET_KEY=docker
- ENMS_CONFIG_MODE=Production
- USE_VAULT=0
Expand Down

0 comments on commit 5c260d5

Please sign in to comment.