Skip to content

Commit

Permalink
adding option to use swarm with local images or production images
Browse files Browse the repository at this point in the history
  • Loading branch information
HusseinYasser authored and Ahmad45123 committed May 9, 2024
1 parent 38a44e1 commit ba91c0a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

build:
mvn -DskipTests package
docker build ./services/jobs --tag ahmad45123/workup:service_jobs
docker build ./services/payments --tag ahmad45123/workup:service_payments
docker build ./services/users --tag ahmad45123/workup:service_users
docker build ./services/contracts --tag ahmad45123/workup:service_contracts

docker build ./services/jobs --tag workup:service_jobs
docker build ./services/payments --tag workup:service_payments
docker build ./services/users --tag workup:service_users
docker build ./services/contracts --tag workup:service_contracts


up:
docker compose up --force-recreate
Expand Down
11 changes: 11 additions & 0 deletions compose.override.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

version: '3.7'
services:
service_jobs:
image: workup:service_jobs

service_payments:
image: workup:service_payments

service_contracts:
image: workup:service_contracts

0 comments on commit ba91c0a

Please sign in to comment.