-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
98 lines (86 loc) · 2.65 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
##################################################################
# Chase Dorsey, Inductive Automation May. 21, 2024
# Thank you to Kevin Collins!
#
# # YAML includes two Ignition servers and Postgres
#
# ${foo:-bar} denotes an environmental variable "foo" with a
# default value "bar"
##################################################################
x-ignition-opts: &ignition-opts
image: inductiveautomation/ignition:8.1.44
services:
# Ignition Gateway
backend-gw1:
image: "inductiveautomation/ignition:8.1.44"
hostname: backend-gw1
restart: always
ports:
- 18088:8088
- 18043:8043
volumes:
# Gateway backup
- ./gw-init/backend.gwbk:/restore.gwbk
# Ignition Data
- ignBackendData:/usr/local/bin/ignition/data
# SSL Keystore
- ./gw-init/backend-ssl.pfx:/usr/local/bin/ignition/webserver/ssl.pfx
# Metro Keystore
- ./gw-init/backend-metro-keystore:/usr/local/bin/ignition/webserver/metro-keystore
environment:
ACCEPT_IGNITION_EULA: 'Y'
IGNITION_EDITION: standard
GATEWAY_NETWORK_REQUIRETWOWAYAUTH: "true"
GATEWAY_NETWORK_SECURITYPOLICY: "Unrestricted"
TZ: America/Los_Angeles
command:
-n bb_ign_backend
-r /restore.gwbk
frontend-gw1:
image: "inductiveautomation/ignition:8.1.44"
hostname: frontend-gw1
restart: always
ports:
- 28088:8088
- 28043:8043
volumes:
# Gateway backup
- ./gw-init/frontend.gwbk:/restore.gwbk
# Ignition Data
- ignFrontendData:/usr/local/bin/ignition/data
# Ignition Project
- ./gw-projects/frontendproject:/usr/local/bin/ignition/data/projects/frontendproject
# SSL Keystore
- ./gw-init/frontend-ssl.pfx:/usr/local/bin/ignition/webserver/ssl.pfx
# Metro Keystore
- ./gw-init/frontend-metro-keystore:/usr/local/bin/ignition/webserver/metro-keystore
# UUID
- ./gw-init/frontend.uuid:/usr/local/bin/ignition/data/.uuid
user: 0:0
environment:
ACCEPT_IGNITION_EULA: 'Y'
IGNITION_EDITION: standard
GATEWAY_NETWORK_REQUIRETWOWAYAUTH: "true"
GATEWAY_NETWORK_0_HOST: backend-gw1
TZ: America/Los_Angeles
command:
-n bb_ign_frontend
-r /restore.gwbk
# Postgres Database
postgres:
image: postgres:16.3
hostname: PostgreSQL
restart: always
environment:
POSTGRES_PASSWORD: PostgreSQL
POSTGRES_USER: Postgres
POSTGRES_DB: Postgres
TZ: America/Los_Angeles
ports:
- 15432:5432
volumes:
- pgData:/var/lib/postgresql/data
volumes:
ignBackendData:
ignFrontendData:
pgData: