add Docker configuration and Jenkins pipeline for application deployment

This commit is contained in:
Vincent Guillet
2025-09-24 11:32:43 +02:00
parent 18f0364e26
commit 2e5b2b3ff5
3 changed files with 126 additions and 0 deletions

32
docker-compose.yml Normal file
View File

@@ -0,0 +1,32 @@
services:
spring:
build:
context: ./api
dockerfile: Dockerfile
container_name: gameovergne-api
depends_on:
- mysql
networks:
- gameovergne-app-network
ports:
- "3000:8080"
environment:
- SPRING_IMAGE_NAME=gameovergne-api
- IMAGE_TAG=latest
angular:
build:
context: ./client
dockerfile: Dockerfile
networks:
- gameovergne-app-network
container_name: gameovergne-client
ports:
- "4200:4200"
environment:
- ANGULAR_IMAGE_NAME=gameovergne-client
- IMAGE_TAG=latest
networks:
gameovergne-app-network:
external: true