add Docker configuration and Jenkins pipeline for application deployment
This commit is contained in:
32
docker-compose.yml
Normal file
32
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user