-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
47 lines (47 loc) · 1.1 KB
/
docker-compose.yaml
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
version: "3.8"
services:
nats:
image: nats:2.6.1-alpine3.14
ports:
- "4222:4222"
- "8222:8222"
cockroachdb:
image: cockroachdb/cockroach:v21.1.9
command:
- start-single-node
- --insecure
ports:
- "26257:26257"
- "8181:8080"
volumes:
- ./build/docker-volumes/cockroachdb:/cockroach/cockroach-data
create-db:
image: jbergknoff/postgresql-client
command:
- --host=cockroachdb
- --port=26257
- --username=root
- --dbname=postgres
- --command=CREATE DATABASE IF NOT EXISTS irobo
depends_on:
- cockroachdb
irobo:
image: slamdev/hetzner-irobo
ports:
- "8080:8080"
- "8081:8081"
profiles: [ "complete" ]
depends_on:
- create-db
- nats
environment:
- HETZNER_IROBO_ROBOT_USERNAME
- HETZNER_IROBO_ROBOT_PASSWORD
- HETZNER_IROBO_ROBOT_SSH_KEY
- HETZNER_IROBO_ZABBIX_URL
- HETZNER_IROBO_ZABBIX_USERNAME
- HETZNER_IROBO_ZABBIX_PASSWORD
- SPRING_PROFILES_ACTIVE=cloud
deploy:
restart_policy:
condition: on-failure