-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
36 lines (34 loc) · 941 Bytes
/
docker-compose.yaml
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
version: "3.5"
services:
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto:latest
ports:
- "1883:1883"
volumes:
- $PWD/.dev/mosquitto.conf:/mosquitto/config/mosquitto.conf
- $PWD/.dev/.mosquitto/log:/mosquitto/log
- $PWD/.dev/.mosquitto/data/:/mosquitto/data
postgresql:
container_name: postgres
image: postgres
restart: always
environment:
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- $PWD/.dev/sql:/var/lib/postgresql/sql
- $PWD/.dev/.postgres:/var/lib/postgresql/data
redis:
container_name: redis
image: "redis:alpine"
command: redis-server --requirepass chirpstack
ports:
- "6379:6379"
volumes:
- $PWD/.dev/.redis/data:/var/lib/redis
- $PWD/.dev/redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master