71 lines
1.7 KiB
YAML
71 lines
1.7 KiB
YAML
services:
|
|
aprsc:
|
|
build:
|
|
context: .
|
|
dockerfile: trackdirect-aprsc.dockerfile
|
|
ports:
|
|
- "10152:10152"
|
|
- "14580:14580"
|
|
- "10155:10155"
|
|
- "14501:14501"
|
|
volumes:
|
|
- $PWD/config/aprsc.conf:/opt/aprsc/etc/aprsc.conf
|
|
|
|
collector:
|
|
build:
|
|
context: .
|
|
dockerfile: trackdirect-python.dockerfile
|
|
volumes:
|
|
- $PWD/config/trackdirect.ini:/root/trackdirect/config/trackdirect.ini
|
|
command: /root/trackdirect/server/scripts/collector.sh trackdirect.ini 0
|
|
depends_on:
|
|
- "db"
|
|
- "aprsc"
|
|
|
|
websocket:
|
|
build:
|
|
context: .
|
|
dockerfile: trackdirect-python.dockerfile
|
|
volumes:
|
|
- $PWD/config/trackdirect.ini:/root/trackdirect/config/trackdirect.ini
|
|
command: /root/trackdirect/server/scripts/wsserver.sh trackdirect.ini
|
|
ports:
|
|
- "8090:8090"
|
|
depends_on:
|
|
- "db"
|
|
- "aprsc"
|
|
|
|
cron:
|
|
build:
|
|
context: .
|
|
dockerfile: trackdirect-cron.dockerfile
|
|
volumes:
|
|
- $PWD/config/trackdirect.ini:/root/trackdirect/config/trackdirect.ini
|
|
depends_on:
|
|
- "db"
|
|
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: trackdirect-apache.dockerfile
|
|
volumes:
|
|
- $PWD/config/trackdirect.ini:/root/trackdirect/config/trackdirect.ini
|
|
- ./htdocs/public:/root/trackdirect/htdocs/public # For development
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- "db"
|
|
|
|
db:
|
|
build:
|
|
context: .
|
|
dockerfile: trackdirect-db.dockerfile
|
|
environment:
|
|
POSTGRES_USER: root
|
|
POSTGRES_PASSWORD: foobar
|
|
POSTGRES_DB: trackdirect
|
|
volumes:
|
|
- $PWD/db:/var/lib/postgresql/data
|
|
command: -c config_file=/etc/postgresql.conf
|
|
ports:
|
|
- "5432:5432" |