forked from nautobot/nautobot-app-version-control
-
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.
- correctly reference hosted_ca.pem - ignore creds_hosted.env - introduce development/docker-compose.base-hosted.yml, which doesn't depend on db, since we're not running db when using hosted dolt
- Loading branch information
1 parent
739b019
commit 7f348c5
Showing
3 changed files
with
41 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -309,4 +309,5 @@ public | |
|
||
# Custom | ||
hosted_ca.pem | ||
.idea | ||
.idea | ||
creds_hosted.env |
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,37 @@ | ||
--- | ||
x-nautobot-build: &nautobot-build | ||
build: | ||
args: | ||
NAUTOBOT_VER: "${NAUTOBOT_VER}" | ||
PYTHON_VER: "${PYTHON_VER}" | ||
context: "../" | ||
dockerfile: "development/Dockerfile" | ||
x-nautobot-base: &nautobot-base | ||
image: "nautobot-version-control/nautobot:${NAUTOBOT_VER}-py${PYTHON_VER}" | ||
env_file: | ||
- "development.env" | ||
- "creds.env" | ||
tty: true | ||
|
||
version: "3.8" | ||
services: | ||
nautobot: | ||
depends_on: | ||
redis: | ||
condition: "service_started" | ||
<<: *nautobot-build | ||
<<: *nautobot-base | ||
worker: | ||
entrypoint: | ||
- "sh" | ||
- "-c" # this is to evaluate the $NAUTOBOT_LOG_LEVEL from the env | ||
- "nautobot-server celery worker -l $$NAUTOBOT_LOG_LEVEL --events" ## $$ because of docker-compose | ||
depends_on: | ||
- "nautobot" | ||
healthcheck: | ||
interval: "30s" | ||
timeout: "10s" | ||
start_period: "30s" | ||
retries: 3 | ||
test: ["CMD", "bash", "-c", "nautobot-server celery inspect ping --destination celery@$$HOSTNAME"] ## $$ because of docker-compose | ||
<<: *nautobot-base |
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