-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 947 Bytes
/
docker-compose.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
version: "3"
services:
app:
container_name: app
restart: always
command: yarn start --env=production
env_file:
- .env
build: ./server
depends_on:
- postgres
links:
- postgres
ports:
- "3000:3000"
- "5432"
mqttclient:
container_name: mqttclient
restart: always
command: yarn start --env=production
env_file:
- .env
build: ./mqttClient
depends_on:
- mqtt
links:
- mqtt
ports:
- "5000:5000"
postgres:
image: postgres:11.2-alpine
environment:
POSTGRES_PASSWORD: gegeraptor
POSTGRES_USER: gegeraptor
POSTGRES_DB: graphql-node
# volumes:
# - ~/dbdata:/var/lib/postgresql/data
mqtt:
image: eclipse-mosquitto:latest
restart: always
ports:
- "1883:1883"
- "9001:9001"
volumes:
- /opt/conf/mqtt/data:/mosquitto/data
- /opt/conf/mqtt/log:/mosquitto/log