-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There was a missing pids directory that was necessary for launching - this docker-compose file let me debug that.
- Loading branch information
1 parent
60e7aff
commit 95ba106
Showing
4 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ curl -s -X POST -H "Accept: application/vnd.github+json-H" -H "Content-Type: app | |
|
||
# Deploy using nomad-host-prod1, which has the nomad management key. | ||
ssh [email protected] << EOF | ||
curl -s "https://raw.githubusercontent.com/pulibrary/${REPOSITORY}/${BRANCH_NAME}/config/deploy/${ENV}.hcl" | nomad job run -var "branch_or_sha=sha-$(git ls-remote https://github.com/pulibrary/${REPOSITORY}.git ${BRANCH_NAME} | awk '{ print substr($1,1,7) }')" - | ||
curl -H 'Cache-Control: no-cache' -s "https://raw.githubusercontent.com/pulibrary/${REPOSITORY}/${BRANCH_NAME}/config/deploy/${ENV}.hcl" | nomad job run -var "branch_or_sha=sha-$(git ls-remote https://github.com/pulibrary/${REPOSITORY}.git ${BRANCH_NAME} | awk '{ print substr($1,1,7) }')" - | ||
EOF | ||
retcode=$? | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: "3.8" | ||
services: | ||
web: | ||
build: | ||
context: . | ||
args: | ||
UID: ${UID:-1000} | ||
GID: ${GID:-${UID:-1000}} | ||
ports: | ||
- "3000:3000" | ||
environment: | ||
- SECRET_KEY_BASE=1111111 | ||
- APP_DB_HOST=postgres-db | ||
- APP_DB_USERNAME=root | ||
- APP_DB_PASSWORD=password | ||
- APP_DB=pulfalight | ||
- RAILS_ENV=staging | ||
depends_on: | ||
postgres-db: | ||
condition: service_healthy | ||
postgres-db: | ||
image: postgres | ||
environment: | ||
POSTGRES_USER: root | ||
POSTGRES_PASSWORD: password | ||
volumes: | ||
- ./tmp/db:/var/lib/postgresql/data | ||
ports: | ||
- "5432:5432" | ||
healthcheck: | ||
test: pg_isready | ||
interval: 2s | ||
timeout: 5s | ||
retries: 30 |
Empty file.