-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-wanda.yaml
77 lines (68 loc) · 2 KB
/
docker-compose-wanda.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
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
# This is an **adapted** version of https://github.com/trento-project/wanda/blob/main/docker-compose.checks.yaml
name: tcsc
services:
trento-checks:
container_name: tcsc-trento-checks
image: ${CHECKS_URL}:${CHECKS_VERSION}
labels:
- com.suse.tcsc.stack=wanda
- com.suse.tcsc.expected_state=exited
- com.suse.tcsc.expected_volumes=tcsc_trento-checks
volumes:
- trento-checks:/usr/share/trento/checks
wanda:
image: ${WANDA_URL}:${WANDA_VERSION}
container_name: tcsc-wanda
labels:
- com.suse.tcsc.stack=wanda
- com.suse.tcsc.expected_state=running
- com.suse.tcsc.expected_volumes=tcsc_trento-checks
environment:
DATABASE_URL: ecto://postgres:postgres@postgres/postgres
SECRET_KEY_BASE: dummyS3cr3t
AMQP_URL: amqp://wanda:wanda@rabbitmq
CORS_ENABLED: "false"
ACCESS_TOKEN_ENC_SECRET: ""
JWT_AUTHENTICATION_ENABLED: "false"
depends_on:
- trento-checks
- postgres
- rabbitmq
ports:
- 4000:4000
volumes:
- ${CHECK_DIR:-trento-checks}:/usr/share/trento/checks
entrypoint: /bin/sh -c "/app/bin/wanda eval 'Wanda.Release.init()' && /app/bin/wanda start"
rabbitmq:
image: rabbitmq:3.10.5-management-alpine
container_name: tcsc-rabbitmq
labels:
- com.suse.tcsc.stack=wanda
- com.suse.tcsc.expected_state=running
ports:
- 5672:5672
- 15672:15672
environment:
RABBITMQ_DEFAULT_USER: wanda
RABBITMQ_DEFAULT_PASS: wanda
postgres:
image: postgres:latest
container_name: tcsc-postgres
labels:
- com.suse.tcsc.stack=wanda
- com.suse.tcsc.expected_state=running
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- 5434:5432
volumes:
- pg_data:/var/lib/postgresql/data
volumes:
pg_data:
labels:
- com.suse.tcsc.stack=wanda
trento-checks:
labels:
- com.suse.tcsc.stack=wanda