Skip to content

Commit

Permalink
Simplify docker compose setup. (#933)
Browse files Browse the repository at this point in the history
Place docker-compose at the root of the project.

Remove some of the variable user needed to setup with defaults.
As we can asume a person is running this as a test and not in production
with docker-compose.

process to start is now.

`docker-compose up` in the root of the project.

Co-authored-by: Lars van der Bijl <[email protected]>
  • Loading branch information
larsbijl and Lars van der Bijl committed Apr 17, 2021
1 parent 9e0b6bf commit 19f0b1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions sandbox/docker-compose.yml → docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
image: postgres
environment:
- POSTGRES_USER=cuebot
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_PASSWORD=cuebot_password
- POSTGRES_DB=cuebot
ports:
- "5432:5432"
Expand All @@ -22,7 +22,7 @@ services:
- db
environment:
- PGUSER=cuebot
- PGPASSWORD=$POSTGRES_PASSWORD
- PGPASSWORD=cuebot_password
- PGDATABASE=cuebot
- PGHOST=db
- PGPORT=5432
Expand All @@ -39,8 +39,8 @@ services:
- flyway
restart: always
environment:
- CUE_FRAME_LOG_DIR=$CUE_FRAME_LOG_DIR
command: --datasource.cue-data-source.jdbc-url=jdbc:postgresql://db/cuebot --datasource.cue-data-source.username=cuebot --datasource.cue-data-source.password=$POSTGRES_PASSWORD
- CUE_FRAME_LOG_DIR=/tmp/rqd/logs
command: --datasource.cue-data-source.jdbc-url=jdbc:postgresql://db/cuebot --datasource.cue-data-source.username=cuebot --datasource.cue-data-source.password=cuebot_password

rqd:
image: opencue/rqd
Expand Down
2 changes: 1 addition & 1 deletion sandbox/docker-compose.monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
environment:
- DATA_SOURCE_URI=db:5432/postgres?sslmode=disable
- DATA_SOURCE_USER=cuebot
- DATA_SOURCE_PASS=$POSTGRES_PASSWORD
- DATA_SOURCE_PASS=cuebot_password
- PG_EXPORTER_AUTO_DISCOVER_DATABASES=true
ports:
- 9187:9187
Expand Down

0 comments on commit 19f0b1d

Please sign in to comment.