-
Notifications
You must be signed in to change notification settings - Fork 33
/
docker-compose.prod.yml
63 lines (58 loc) · 1.48 KB
/
docker-compose.prod.yml
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
version: "3"
services:
oba_bundler:
build:
context: ./bundler
volumes:
- ./bundle:/bundle
environment:
- GTFS_URL
oba_database:
image: mysql:8.4
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:
image: opentransitsoftwarefoundation/onebusaway-api-webapp:${OBA_VERSION:-latest}
container_name: oba_app
depends_on:
- oba_database
build:
context: ./oba
environment:
- JDBC_URL=jdbc:mysql://oba_database:3306/oba_database
- JDBC_DRIVER=com.mysql.cj.jdbc.Driver
- JDBC_USER=oba_user
- JDBC_PASSWORD=oba_password
- TEST_API_KEY
- TZ
- VEHICLE_POSITIONS_URL
- TRIP_UPDATES_URL
- ALERTS_URL
- REFRESH_INTERVAL=30
- AGENCY_ID
volumes:
# Share the host"s `bundle` directory
# with the filesystem of the OBA service.
- ./bundle:/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"
# restart: always
labels:
caddy: "${DOMAIN}"
caddy.reverse_proxy: "{{upstreams 8080}}"
volumes:
mysql-data:
caddy-data: {}