Comments (5)
Change only the public port. Port inside the docker container must be 8080
from acrarium.
But i don't think it should give error failed to start on 8080 as there is no such port specified.
I'm not a docker expert but, I think the line
network_mode:host
is starting the container in host mode and hence the ports are ignored completely.
I'm trying to create a custom network and put the network_mode as bridge, so I can link the db and front end.
But is there any environment variable for port ?
from acrarium.
Ok so if you specify the network_mode as host docker uses the host network. So specifying the ports is useless.
So for now if you use above style of setup the server will always run on 8080.
from acrarium.
All spring boot configurations are available as environment variables.
More specifically, you can set
environment:
SERVER_PORT: 8081
from acrarium.
Thanks it works.. my final docker compose is
version: "3.7"
services:
acrarium:
image: f43nd1r/acrarium:latest
container_name: acrarium
network_mode: host
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://localhost:3306/acrarium?useSSL=false&allowPublicKeyRetrieval=true&useLegacyDatetimeCode=false&serverTimezone=UTC
SPRING_DATASOURCE_USERNAME: acrarium
SPRING_DATASOURCE_PASSWORD: ****
SPRING_JPA_DATABASE-PLATFORM: org.hibernate.dialect.MySQL57Dialect
SERVER_PORT: 20101
from acrarium.
Related Issues (20)
- Custom column causes SQL exception HOT 1
- Database connection leak HOT 4
- docker-compose app not started HOT 2
- Introduce "stable" tag for docker hub HOT 1
- Android Studio Integration HOT 1
- UI questions HOT 3
- Click events on "Open" icon into issues' table propagates to parent
- Can't start Alpha 2 HOT 1
- More filter options in the Bugs Tab HOT 9
- No UI mode HOT 1
- Building and running 2.0.0-alpha3 HOT 1
- /report endpoint responds with 403 - VersionRepository.ensureExists HOT 1
- Error 500 when opening bug details: Property or field 'appId' cannot be found HOT 4
- Failing migration from 1.8.1 to v2.0.0-beta04 HOT 8
- Standalone setup fails to load login page using Apache (401) HOT 5
- [Regression] Compressed reports are not received correctly in v2 HOT 16
- Unable to upload large Proguard mapping files HOT 8
- NullPointerException HOT 1
- set basicAuthLogin and basicAuthPassword when create a project manually HOT 1
- Solved Bugs are counted in the Application-Overview
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acrarium.