-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from Altonhe/feature/supervisor
fix: database error when set `GTFS_URL` to oba_app
- Loading branch information
Showing
5 changed files
with
105 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
version: "3" | ||
|
||
services: | ||
oba_database: | ||
image: mysql:8.3 | ||
container_name: oba_database | ||
environment: | ||
MYSQL_ROOT_PASSWORD: Ins3cure! | ||
MYSQL_DATABASE: oba_database | ||
MYSQL_USER: oba_user | ||
MYSQL_PASSWORD: oba_password | ||
ports: | ||
- "3306:3306" | ||
volumes: | ||
- type: volume | ||
source: mysql-data | ||
target: /var/lib/mysql | ||
restart: always | ||
|
||
oba_app: | ||
container_name: oba_app | ||
depends_on: | ||
- oba_database | ||
build: | ||
context: ./oba | ||
environment: | ||
- JDBC_URL=jdbc:mysql://oba_database:3306/oba_database | ||
- JDBC_USER=oba_user | ||
- JDBC_PASSWORD=oba_password | ||
- TEST_API_KEY=test # For test only, remove in production | ||
- TZ=America/New_York | ||
- GTFS_URL=https://unitrans.ucdavis.edu/media/gtfs/Unitrans_GTFS.zip | ||
|
||
ports: | ||
# Access the webapp on your host machine at a path like | ||
# http://localhost:8080/onebusaway-api-webapp/api/where/agency/${YOUR_AGENCY}.json?key=TEST | ||
- "8080:8080" | ||
# restart: always | ||
|
||
volumes: | ||
mysql-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters