diff --git a/Jenkinsfile b/Jenkinsfile index cec9cab..6ed5d70 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,6 +30,7 @@ pipeline { mkdir -p /data/${APP_NAME} docker run -d \ --name ${APP_NAME} \ + --network nginx \ -p 3000:3000 \ -v /data/${APP_NAME}:/app/data \ -e DATABASE_URL=file:/app/data/prod.db \ diff --git a/docker-compose.yml b/docker-compose.yml index 465ff74..54fb4e9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,3 +10,9 @@ services: environment: - DATABASE_URL=file:/app/data/prod.db restart: unless-stopped + networks: + - nginx + +networks: + nginx: + external: true