fix: jenkins

This commit is contained in:
Araozu 2024-10-06 21:59:20 -05:00
parent a906c3bedc
commit 70e30f7ac0
2 changed files with 12 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -17,7 +17,7 @@ pipeline {
steps { steps {
sh 'rm .env || true' sh 'rm .env || true'
sh 'echo "PORT=8007" >> .env' sh 'echo "PORT=8007" >> .env'
sh 'echo "DB_HOST=localhost" >> .env' sh 'echo "DB_HOST=music-to-go-db" >> .env'
sh 'echo "DB_PORT=5432" >> .env' sh 'echo "DB_PORT=5432" >> .env'
sh 'echo "DB_DATABASE=music" >> .env' sh 'echo "DB_DATABASE=music" >> .env'
sh 'echo "DB_USERNAME=root" >> .env' sh 'echo "DB_USERNAME=root" >> .env'

View File

@ -1,12 +1,17 @@
services: services:
music-to-go: music-to-go:
container_name: music-to-go container_name: music-to-go
depends_on:
- music-to-go-db
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- "8007:8007" - "8007:8007"
restart: unless-stopped restart: unless-stopped
networks:
- music-to-go-network
music-to-go-db: music-to-go-db:
image: postgres image: postgres
container_name: music-to-go-db container_name: music-to-go-db
@ -18,4 +23,10 @@ services:
environment: environment:
POSTGRES_USER: root POSTGRES_USER: root
POSTGRES_PASSWORD: root POSTGRES_PASSWORD: root
networks:
- music-to-go-network
networks:
music-to-go-network:
driver: bridge