-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
102 lines (99 loc) · 2.64 KB
/
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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
nginx:
image: nginxproxy/nginx-proxy:1.6.0
networks:
- flowforge
restart: always
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- "./nginx/vhost.d:/etc/nginx/vhost.d"
- "./nginx/html:/usr/share/nginx/html"
- "./nginx/my-proxy.conf:/etc/nginx/conf.d/my_proxy.conf"
# - "./certs:/etc/nginx/certs"
ports:
- "80:80"
# - "443:443"
# environment:
# - "HTTPS_METHOD=redirect"
# acme:
# image: nginxproxy/acme-companion:2.4.0
# restart: always
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
# - "./acme:/etc/acme.sh"
# volumes_from:
# - nginx:rw
# environment:
# - "DEFAULT_EMAIL=mail@example.com"
# depends_on:
# - "nginx"
postgres:
image: postgres:14
networks:
- flowforge
restart: always
environment:
POSTGRES_PASSWORD: secret
POSTGRES_USER: root
volumes:
- "./db:/var/lib/postgresql/data"
- "./setup-db.sh:/docker-entrypoint-initdb.d/01-setup-db.sh"
- "./setup-context-db.sh:/docker-entrypoint-initdb.d/02-setup-context-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"
image: "flowfuse/forge-docker"
networks:
- flowforge
restart: always
environment:
- "VIRTUAL_HOST=forge.example.com"
- "LETSENCRYPT_HOST=forge.example.com"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
- "./etc/flowforge.yml:/usr/src/forge/etc/flowforge.yml"
- "./persistent-storage:/opt/persistent-storage"
depends_on:
- "postgres"
- "nginx"
- "flowforge-broker"
file-server:
build:
context: "./file-server"
image: "flowfuse/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"
# npm:
# image: "verdaccio/verdaccio:5"
# networks:
# - flowforge
# restart: always
# environment:
# - "VIRTUAL_HOST=npm.example.com"
# - "VIRTUAL_PORT=4873"
# volumes:
# - "./npm/conf:/verdaccio/conf"
# - "./npm/storage:/verdaccio/storage"
# depends_on:
# - nginx
networks:
flowforge: