-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
121 lines (115 loc) · 2.55 KB
/
docker-compose-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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: '3'
services:
stackstorm:
#image: stackstorm/stackstorm:${ST2_IMAGE_TAG:-latest}
image: stackstorm/stackstorm:3.1
build:
context: ./images/stackstorm
dockerfile: Dockerfile.dev
#args:
# - DOCKER_GROUP_ID=${DOCKER_GROUP_ID}
### tail ~/.bashrc
# export SLACKBOT_NAME='xxx'
environment:
- HOST_IP
- SLACKBOT_NAME
- SLACKBOT_TOKEN
- INCOMING_WEBHOOK_URL
- DST_CHANNEL
- WEBAPP_IP
- JUNOS_USER
- JUNOS_PASS
- JUNOS_PORT
- JUNOS_IP
- GITHUB_ACCT
- GITHUB_SECRET_TOKEN
- SERVICE_DIR
env_file:
- conf/stackstorm.env
- conf/mongo.env
- conf/rabbitmq.env
- conf/postgres.env
- conf/redis.env
command: env
ports:
- "443:443"
depends_on:
- mongo
- postgres
- rabbitmq
- redis
networks:
- public
- private
volumes:
- stackstorm-packs-volume:/opt/stackstorm/packs
- stackstorm-virtualenvs-volume:/opt/stackstorm/virtualenvs
- stackstorm-configs-volume:/opt/stackstorm/configs
- stackstorm-log-volume:/var/log
- ./packs.dev:/opt/stackstorm/packs.dev
- ./runtime/entrypoint.d:/st2-docker/entrypoint.d
- ./runtime/st2.d:/st2-docker/st2.d
- ./conf/stackstorm.env:/st2-docker/env
- /var/run/docker.sock:/var/run/docker.sock
- /app:/usr/src/app
dns_search: .
### External Services
mongo:
image: mongo:3.4
env_file:
- conf/mongo.env
networks:
- private
volumes:
- mongo-volume:/data/db
- mongo-configdb-volume:/data/configdb
dns_search: .
rabbitmq:
image: rabbitmq:3.6-management
env_file:
- conf/rabbitmq.env
networks:
- private
volumes:
- rabbitmq-volume:/var/lib/rabbitmq
dns_search: .
postgres:
image: postgres:9.6
env_file:
- conf/postgres.env
networks:
- private
volumes:
- postgres-volume:/var/lib/postgresql/data
dns_search: .
redis:
image: redis:4.0
env_file:
- conf/redis.env
networks:
- private
volumes:
- redis-volume:/data
dns_search: .
command: [
"bash", "-c",
'
docker-entrypoint.sh
--requirepass "$$REDIS_PASSWORD"
'
]
volumes:
mongo-volume:
mongo-configdb-volume:
postgres-volume:
rabbitmq-volume:
redis-volume:
stackstorm-packs-volume:
stackstorm-virtualenvs-volume:
stackstorm-configs-volume:
stackstorm-log-volume:
networks:
public:
driver: bridge
private:
driver: bridge