Skip to content

Move web service to profiles for explicit startup #1337

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

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ Using Docker.
docker run -p 8065:80 datacite/lupo
```

or
or using with docker compose `app` profile

```bash
docker-compose up
docker compose --profile app up
```

Without specifying the `app` profile just the core infrastructure parts will start i.e. mysql, opensearch etc

If you want to build the docker image locally (instead of pulling it from docker hub)
and use docker compose for development you can use
```bash
Expand Down
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
services:
web:
profiles: [ app ]
env_file: .env
environment:
- ELASTIC_PASSWORD=AnUnsecurePassword123
Expand All @@ -18,10 +19,12 @@ services:
- public
depends_on:
- elasticsearch

memcached:
image: memcached:1.4.31
networks:
- public

mysql:
command: --max_allowed_packet=50000000
environment:
Expand All @@ -32,8 +35,9 @@ services:
- "3309:3306"
networks:
- public

elasticsearch:
image: opensearchproject/opensearch:2
image: opensearchproject/opensearch:2
ports:
- "9201:9200"
- "9301:9300"
Expand Down