Skip to content

Commit

Permalink
chore: minor tweaks for local dev (#1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3r authored Dec 6, 2023
1 parent 2b58510 commit fb12fdd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ bump-deps-full: check
pull:
@echo
@echo "### Pulling images for docker-compose stack"
@docker-compose pull
@docker compose pull

# The `compose-up` target is intended to build and create
# all containers for the local Docker compose stack.
Expand All @@ -237,7 +237,7 @@ pull:
compose-up:
@echo
@echo "### Creating containers for docker-compose stack"
@docker-compose -f docker-compose.yml up -d --build
@docker compose -f docker-compose.yml up -d --build

# The `compose-down` target is intended to destroy
# all containers for the local Docker compose stack.
Expand All @@ -247,7 +247,7 @@ compose-up:
compose-down:
@echo
@echo "### Destroying containers for docker-compose stack"
@docker-compose -f docker-compose.yml down
@docker compose -f docker-compose.yml down

# The `spec-install` target is intended to install the
# the needed dependencies to generate the api spec.
Expand Down Expand Up @@ -322,4 +322,4 @@ spec: spec-gen spec-version-update spec-validate
lint:
@echo
@echo "### Linting Go Code"
@golangci-lint run ./...
@golangci-lint run ./...
19 changes: 12 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
version: '3'

services:

# The `server` compose service hosts the Vela server and API.
#
# This component is used for processing web requests and
Expand All @@ -16,7 +15,6 @@ services:
context: .
dockerfile: Dockerfile
container_name: server
image: server:local
networks:
- vela
environment:
Expand Down Expand Up @@ -52,10 +50,12 @@ services:
ports:
- '8080:8080'
depends_on:
- postgres
- redis
- vault

postgres:
condition: service_healthy
redis:
condition: service_started
vault:
condition: service_started

# The `worker` compose service hosts the Vela build daemon.
#
Expand Down Expand Up @@ -140,6 +140,11 @@ services:
POSTGRES_USER: vela
ports:
- '5432:5432'
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 10s
timeout: 5s
retries: 5

# The `vault` compose service hosts the HashiCorp Vault instance.
#
Expand All @@ -161,4 +166,4 @@ services:
- IPC_LOCK

networks:
vela:
vela:

0 comments on commit fb12fdd

Please sign in to comment.