forked from FlowFuse/docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-local-dev.yml
66 lines (64 loc) · 1.5 KB
/
docker-compose-local-dev.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
57
58
59
60
61
62
63
64
65
66
version: "3.3"
services:
nginx:
image: jwilder/nginx-proxy
networks:
- flowforge
restart: always
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
ports:
- "80:80"
# - "443:443"
postgres:
image: postgres
networks:
- flowforge
restart: always
environment:
POSTGRES_PASSWORD: secret
POSTGRES_USER: root
volumes:
- "./db:/var/lib/postgresql/data"
- "./setup-db.sh:/docker-entrypoint-initdb.d/setup-db.sh"
flowforge-broker:
image: "iegomez/mosquitto-go-auth"
networks:
- flowforge
restart: always
ulimits:
nofile: 2048
environment:
- "VIRTUAL_HOST=mqtt.example.com"
- "VIRTUAL_PORT=1884"
- "LETSENCRYPT_HOST=mqtt.example.com"
volumes:
- "./broker/mosquitto.conf:/etc/mosquitto/mosquitto.conf"
forge:
build:
context: "./flowforge-docker-local-dev/"
networks:
- flowforge
restart: always
environment:
- "VIRTUAL_HOST=forge.example.com"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
- "../:/data"
depends_on:
- "postgres"
- "nginx"
file-server:
build:
context: "./file-server"
image: "flowforge/file-server"
networks:
- flowforge
restart: always
volumes:
- "./etc/flowforge-storage.yml:/usr/src/flowforge-file-server/etc/flowforge-storage.yml"
- "./fileStorage:/usr/src/flowforge-file-server/var/root"
depends_on:
- "forge"
networks:
flowforge: