Skip to content

Commit e3b22a7

Browse files
committed
docker-compose
1 parent 7e87776 commit e3b22a7

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

docker-compose.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3'
2-
31
services:
42
st2web:
53
image: ${ST2_IMAGE_REPO:-stackstorm/}st2web:${ST2_VERSION:-latest}
@@ -24,7 +22,7 @@ services:
2422
# uncomment the line below
2523
#- ./files/config.js:/opt/stackstorm/static/webui/config.js:ro
2624
ports:
27-
- "${ST2_EXPOSE_HTTP:-127.0.0.1:80}:80"
25+
- "${ST2_EXPOSE_HTTP:-127.0.0.1:8080}:80"
2826
# - "${ST2_EXPOSE_HTTPS:-127.0.0.1:443}:443"
2927
# more work would be needed with certificate generate to make https work.
3028
networks:
@@ -53,6 +51,8 @@ services:
5351
ST2_AUTH_URL: ${ST2_AUTH_URL:-http://st2auth:9100/}
5452
ST2_API_URL: ${ST2_API_URL:-http://st2api:9101/}
5553
ST2_STREAM_URL: ${ST2_STREAM_URL:-http://st2stream:9102/}
54+
ST2_API_KEY_URL: ${ST2_API_URL:-http://st2api:9101}
55+
ST2_API_KEY: OGZhZDM5OTk5MTE0ODIzZjQ1ZWZiZTMyMzc5ODA0OTYwNjQyOGI2NDhjNjQ4MTcyZGM2NDExNjg2Mjk1MWI1NA
5656
volumes:
5757
- ./files/st2.docker.conf:/etc/st2/st2.docker.conf:ro
5858
- ./files/st2.user.conf:/etc/st2/st2.user.conf:ro
@@ -61,6 +61,8 @@ services:
6161
- stackstorm-packs:/opt/stackstorm/packs:rw
6262
- ./files/rbac:/opt/stackstorm/rbac:rw
6363
- ${ST2_PACKS_DEV:-./packs.dev}:/opt/stackstorm/packs.dev:rw
64+
ports:
65+
- "9101:9101"
6466
st2stream:
6567
image: ${ST2_IMAGE_REPO:-stackstorm/}st2stream:${ST2_VERSION:-latest}
6668
restart: on-failure
@@ -105,6 +107,9 @@ services:
105107
- ./files/st2.docker.conf:/etc/st2/st2.docker.conf:ro
106108
- ./files/st2.user.conf:/etc/st2/st2.user.conf:ro
107109
- ./files/htpasswd:/etc/st2/htpasswd:ro
110+
environment:
111+
ST2_API_KEY_URL: ${ST2_API_URL:-http://st2api:9101}
112+
ST2_API_KEY: OGZhZDM5OTk5MTE0ODIzZjQ1ZWZiZTMyMzc5ODA0OTYwNjQyOGI2NDhjNjQ4MTcyZGM2NDExNjg2Mjk1MWI1NA
108113
st2actionrunner:
109114
image: ${ST2_IMAGE_REPO:-stackstorm/}st2actionrunner:${ST2_VERSION:-latest}
110115
restart: on-failure
@@ -116,6 +121,7 @@ services:
116121
volumes:
117122
- ./files/st2.docker.conf:/etc/st2/st2.docker.conf:ro
118123
- ./files/st2.user.conf:/etc/st2/st2.user.conf:ro
124+
#- ./files/.bashrc:/root/.bashrc
119125
- stackstorm-packs-configs:/opt/stackstorm/configs:rw
120126
- stackstorm-packs:/opt/stackstorm/packs:rw
121127
- ${ST2_PACKS_DEV:-./packs.dev}:/opt/stackstorm/packs.dev:rw
@@ -124,6 +130,12 @@ services:
124130
# Action runner needs access to keys since action definitions (Jinja
125131
# templates) can reference secrets
126132
- stackstorm-keys:/etc/st2/keys:ro
133+
environment:
134+
ST2_API_KEY_URL: ${ST2_API_URL:-http://st2api:9101}
135+
ST2_API_KEY: OGZhZDM5OTk5MTE0ODIzZjQ1ZWZiZTMyMzc5ODA0OTYwNjQyOGI2NDhjNjQ4MTcyZGM2NDExNjg2Mjk1MWI1NA
136+
# ST2_AUTH_URL: ${ST2_AUTH_URL:-http://st2auth:9100/}
137+
ST2_API_URL: ${ST2_API_URL:-http://st2api:9101/}
138+
# ST2_API_KEY: MDExYzU2ODkyNWNhMDhmZGM2NDA0MmM4MWYxYTFjMzFjYWNiNDVhMTYzMjk5NmVhMGRhOTYxMDdjMjhkYjA5Zg
127139
st2garbagecollector:
128140
image: ${ST2_IMAGE_REPO:-stackstorm/}st2garbagecollector:${ST2_VERSION:-latest}
129141
restart: on-failure
@@ -257,7 +269,6 @@ services:
257269
- private
258270
volumes:
259271
- stackstorm-redis:/data
260-
261272
volumes:
262273
stackstorm-mongodb:
263274
stackstorm-rabbitmq:
@@ -267,9 +278,8 @@ volumes:
267278
stackstorm-keys:
268279
stackstorm-virtualenvs:
269280
stackstorm-ssh:
270-
271281
networks:
272282
public:
273283
driver: bridge
274284
private:
275-
driver: bridge
285+
driver: bridge

0 commit comments

Comments
 (0)