Skip to content

Commit

Permalink
fix: docker
Browse files Browse the repository at this point in the history
  • Loading branch information
kallyas committed Aug 26, 2023
1 parent 2fd736a commit cff8427
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ jobs:
# Build and push using Docker Compose
- name: Build and push images using Docker Compose
run: |
docker-compose -f ./server/docker-compose.yml build
docker-compose -f ./server/docker-compose.yml push
docker-compose -f docker-compose.yml build
docker-compose -f docker-compose.yml push
35 changes: 25 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
version: '3'

services:
client:
server:
build:
context: .
dockerfile: client/Dockerfile
ports:
- "3000:80" # Map port 3000 on your host to port 80 in the container
dockerfile: ./server/Dockerfile
args:
- ARCH=amd64
image: idenmorisha/safe-courier-backend:latest
depends_on:
- server # Ensure the server is started before the client
- mongo

server:
build:
context: .
dockerfile: server/Dockerfile
# MongoDB
mongo:
image: mongo:latest
ports:
- "8080:5000" # Map port 8080 on your host to port 3000 in the container
- "27017:27017"
volumes:
- mongo_data:/data/db

# Uncomment the following section if you want to include the 'client' service
# client:
# build:
# context: .
# dockerfile: ./client/Dockerfile
# args:
# - ARCH=amd64
# image: idenmorisha/safe-courier-frontend:latest

volumes:
mongo_data:

0 comments on commit cff8427

Please sign in to comment.