-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
56 lines (48 loc) · 1.35 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
version: '3'
# TODO: use images from dockerhub instead of building them locally.
services:
bluetooth-nginx-ingress:
restart: unless-stopped
logging:
driver: journald
container_name: bluetooth-nginx-ingress
build:
context: client
dockerfile: Dockerfile.prod
args:
API_URL: "/api"
TILE_URL: "/tiles"
volumes:
- "./nginx/nginx.conf:/etc/nginx/nginx.conf"
ports:
- "8000:8000"
# TODO: add TLS supports via letsencrypt
# - "443:443"
bluetooth-server:
restart: unless-stopped
logging:
driver: journald
container_name: bluetooth-server
environment:
INITIAL_LATITUDE: 60.205048
INITIAL_LONGITUDE: 24.962054
INITIAL_ZOOM: 18
MINIMUM_ZOOM: 9
MQTT_URL: ws://iot.ubikampus.net:9001/mqtt
JWT_SECRET: $JWT_SECRET
ADMIN_USER: $ADMIN_USER
ADMIN_PASSWORD: $ADMIN_PASSWORD
# Used for signing admin messages for MQTT bus
KEY_PATH: pkey/pkey.pem
build:
context: auth-server
dockerfile: Dockerfile.prod
volumes:
- "./pkey:/auth-server/pkey"
bluetooth-tileserver:
restart: unless-stopped
logging:
driver: journald
container_name: bluetooth-tileserver
build: maptiles
command: /bin/bash /usr/src/app/run.sh --config /server/opts-prod.json -u https://map.ubikampus.net/tiles