added docker file

This commit is contained in:
JBB0807 2025-04-28 09:53:22 -07:00
parent 8c5fe4266f
commit a94f4df283
17 changed files with 931 additions and 9 deletions

64
compose.yaml Normal file
View file

@ -0,0 +1,64 @@
version: '3.8'
services:
js-assignment-db-service:
build:
context: ./assignment-db-service
dockerfile: DockerfileDEV
container_name: js-assignment-db-service
restart: unless-stopped
init: true
ports:
- "3000:3000" # Expose port to the same host
env_file:
- ./assignment-db-service/dev.env
networks:
- backend
js-assignment-service:
build:
context: ./assignment-service
dockerfile: DockerfileDEV
container_name: js-assignment-service
restart: unless-stopped
init: true
ports:
- "8082:8082" # Expose port to the same host
env_file:
- ./assignment-service/dev.env
depends_on:
- js-assignment-db-service
networks:
- backend
js-auth-service:
build:
context: ./auth-service
dockerfile: DockerfileDEV
container_name: js-auth-service
restart: unless-stopped
init: true
ports:
- "8080:8080" # Expose port to the same host
env_file:
- ./auth-service/dev.env
networks:
- backend
js-user-db-service:
build:
context: ./user-db-service
dockerfile: DockerfileDEV
container_name: js-user-db-service
restart: unless-stopped
init: true
ports:
- "3100:3100" # Expose port to the same host
env_file:
- ./user-db-service/dev.env
networks:
- backend
networks:
backend:
driver: bridge