-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (79 loc) · 1.82 KB
/
Copy pathdocker-compose.yml
File metadata and controls
79 lines (79 loc) · 1.82 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
68
69
70
71
72
73
74
75
76
77
78
79
version: '2'
services:
db:
container_name: livemap-postgres
image: postgres:9.6
ports:
- "5432:5432"
volumes:
- postgresdb:/var/lib/postgresql/data
- initdb:/docker-entrypoint-initdb.d
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
restart: always
mqtt:
container_name: livemap-mosquitto
image: eclipse-mosquitto
ports:
- "1883:1883"
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
- mqtt-data:/mosquitto/data
- mqtt-log:/mosquitto/log
restart: always
livemap:
container_name: livemap-server
#image: edenb/livemap
build:
context: https://github.com/edenb/livemap.git
dockerfile: Dockerfile.prod
ports:
- "3000:3000"
volumes:
- initdb:/app/initdb
- staticlayers:/app/staticlayers
- tracks:/app/tracks
environment:
C_DB_URL: 'postgres://livemap:livemap@db/livemapdb'
C_SERVER_PORT: '3000'
C_SERVER_FORCESSL: 'false'
C_DB_SSL: 'false'
C_LOGGER_LEVEL: 'debug'
C_MQTT_URL: 'mqtt://mqtt:1883'
C_MQTT_TOPIC: 'livemap/#'
C_WCLIENT_NAME: 'Livemap'
C_WCLIENT_LICENSE: 'MIT'
C_WCLIENT_ABOUT: 'Livemap with Docker'
depends_on:
- demodata
- db
- mqtt
restart: always
livemap-ui:
container_name: livemap-ui
#image: edenb/livemap-ui
build:
context: https://github.com/edenb/livemap-ui.git
dockerfile: Dockerfile
ports:
- "8001:80"
environment:
VITE_SERVER_URL: 'http://${DOCKER_HOST}:3000'
restart: always
demodata:
container_name: livemap-demodata
build:
context: .
dockerfile: Dockerfile
volumes:
- staticlayers:/staticlayers
- tracks:/tracks
volumes:
initdb:
postgresdb:
mqtt-config:
mqtt-data:
mqtt-log:
staticlayers:
tracks: