-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (62 loc) · 1.73 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (62 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
oba_database_pg:
image: postgres:16
container_name: oba_database_pg
environment:
POSTGRES_USER: oba_user
POSTGRES_PASSWORD: oba_password
POSTGRES_DB: oba_database
ports:
- "5432:5432"
volumes:
- type: volume
source: pg-data
target: /var/lib/postgresql/data
restart: always
# Bundle builder that uses local GTFS file
oba_bundler:
container_name: oba_bundler
build:
context: .
dockerfile: Dockerfile
environment:
# Use local GTFS file instead of downloading
- GTFS_ZIP_FILENAME=gtfs.zip
- TZ=America/Los_Angeles
- GTFS_TIDY_ARGS=OscRCSmeD
volumes:
- type: bind
source: ../bundle
target: /bundle
command: ["/oba/build_bundle.sh"]
oba_app:
container_name: oba_app
depends_on:
- oba_database_pg
build:
context: ../oba
environment:
- JDBC_URL=jdbc:postgresql://oba_database_pg:5432/oba_database
- JDBC_DRIVER=org.postgresql.Driver
- JDBC_USER=oba_user
- JDBC_PASSWORD=oba_password
- TEST_API_KEY=test # For test only, remove in production
- TZ=America/Los_Angeles
- GTFS_TIDY_ARGS=v
# Note: No GTFS_URL since we're using pre-downloaded GTFS data
volumes:
- type: bind
source: ../bundle
target: /bundle
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"
- "1234:1234" # JMX exporter port
# Uncomment the following section to test with prometheus and the JMX exporter in localhost
# networks:
# monitoring:
# external: true
volumes:
mysql-data:
pg-data: