Skip to content

Commit

Permalink
experimenting with dockerfile-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
anwilkie committed Aug 1, 2024
1 parent dddaad0 commit 42ca5d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pipenv run tox
To run the service with the required dependencies:

```bash
docker-compose up -d db -f _infra/docker/Dockerfile
docker-compose up -d db
pipenv run python run.py
```

Expand All @@ -57,7 +57,7 @@ The database will automatically be created when starting the application.
To run the service in a Docker container a Compose script is included:

```bash
docker-compose up -d -f _infra/docker/Dockerfile
docker-compose up -d
```

## Configuration
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
ras-collection-instrument:
container_name: ras-collection-instrument
build: ./
dockerfile: _infra/docker/Dockerfile
restart: always
depends_on:
- db
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ commands=
black --line-length 120 --check .
isort . --check-only
flake8 .
docker-compose up -d db -f _infra/docker/Dockerfile
docker-compose up -d db
py.test --cov=application --cov-report html --cov-report term-missing []
docker-compose down

Expand Down

0 comments on commit 42ca5d7

Please sign in to comment.