btc_horse/docker/docker-compose.yml

37 lines
1.0 KiB
YAML

# docker-compose.yml
version: '3.8'
# Define the services for our application stack
services:
spring:
#image: mathewfrancisv/spring_back_postgres:v1.0.0
image: mathewfrancisv/btc_cezen_backend:v2.3.0
container_name: spring_app
ports:
- "8083:8080"
environment:
SPRING_DATASOURCE_CORSIP: http://10.83.77.61:4200
#network_mode: host
networks:
- app_network
# Angular frontend application service
angular-dev:
image: node:20.19.0-alpine
container_name: angular_dev_app
working_dir: /app
volumes:
- ../btc-UI:/app
command: sh -c "npm install && npm run start"
ports:
- "4200:4200" # REQUIRED to expose Angular to the host machine in bridge mode
networks:
- app_network # Connect to the custom bridge network
depends_on:
- spring # The 'spring' service might not be directly reachable by name here
# Define the custom bridge network for 'angular-dev'
networks:
app_network:
driver: bridge # Use the default bridge driver