-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (38 loc) · 922 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
version: "3.8"
services:
postgres:
image: postgres
container_name: airy-postgres
networks:
- airy-net
restart: always
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- type: bind
source: ./__binds/postgresql/data
target: /var/lib/postgresql/data
- type: bind
source: ./__binds/postgresql/docker-entrypoint-initdb.d
target: /docker-entrypoint-initdb.d
mosquitto:
container_name: airy-mosquitto
restart: always
image: eclipse-mosquitto
networks:
- airy-net
ports:
- target: 1883
published: 1883
protocol: tcp
mode: host
volumes:
- type: bind
source: ./__binds/mosquitto/config
target: /mosquitto/config
read_only: true
networks:
airy-net:
external: false