Skip to content
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

Pin postgres, redis and rabbitmq #107

Merged
merged 2 commits into from
Feb 27, 2018
Merged
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
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,19 @@ It's designed to suffice the ordinary use case by default. If you need to custom
- `/opt/stackstorm/virtualenvs`
- `/opt/stackstorm/configs`

Since data directories may persist between invocations of `docker-compose`, you may see the following error:

```
2018-02-21 16:36:21.453 UTC [1] FATAL: database files are incompatible with server
2018-02-21 16:36:21.453 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.2 (Debian 10.2-1.pgdg90+1).
```

In `docker-compose.yml`, pin the postgres version to `9.6` and you will not see the error again.

```
- image: postgres:latest
+ image: postgres:9.6
```

## Environment variables

Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ services:
- mongo-configdb-volume:/data/configdb
dns_search: .
rabbitmq:
image: rabbitmq:management
image: rabbitmq:3.6-management
container_name: rabbitmq
env_file:
- conf/rabbitmq.env
Expand All @@ -50,7 +50,7 @@ services:
- rabbitmq-volume:/var/lib/rabbitmq
dns_search: .
postgres:
image: postgres:latest
image: postgres:9.6
container_name: postgres
env_file:
- conf/postgres.env
Expand All @@ -60,7 +60,7 @@ services:
- postgres-volume:/var/lib/postgresql/data
dns_search: .
redis:
image: redis:latest
image: redis:4.0
container_name: redis
env_file:
- conf/redis.env
Expand Down