-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
92 lines (87 loc) · 2.84 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
version: "3.8"
services:
localstack:
container_name: localstack
image: localstack/localstack:1.3.0
ports:
- "127.0.0.1:5001:5001"
volumes:
- "./docker/uid2-core/src/init-aws.sh:/etc/localstack/init/ready.d/init-aws-core.sh"
- "./docker/uid2-core/src/s3/core:/s3/core"
- "./docker/uid2-core/src/kms/seed.yaml:/init/seed.yaml"
- "./docker/uid2-optout/src/init-aws.sh:/etc/localstack/init/ready.d/init-aws-optout.sh"
- "./docker/uid2-optout/src/s3/optout:/s3/optout"
environment:
- EDGE_PORT=5001
- KMS_PROVIDER=local-kms
healthcheck:
test: awslocal s3api wait bucket-exists --bucket test-core-bucket
&& awslocal s3api wait bucket-exists --bucket test-optout-bucket
interval: 5s
timeout: 5s
retries: 3
networks:
- e2e_default
core:
container_name: core
image: ghcr.io/iabtechlab/uid2-core:latest
ports:
- "127.0.0.1:8088:8088"
- "127.0.0.1:9088:9088"
- "127.0.0.1:5088:5005"
volumes:
- ./docker/uid2-core/conf/default-config.json:/app/conf/default-config.json
- ./docker/uid2-core/conf/local-e2e-docker-config.json:/app/conf/local-config.json
- ./docker/uid2-core/conf/operator/operator-config.json:/app/conf/operator/operator-config.json
depends_on:
localstack:
condition: service_healthy
healthcheck:
test: wget --tries=1 --spider http://localhost:8088/ops/healthcheck || exit 1
interval: 10s
networks:
- e2e_default
optout:
container_name: optout
image: ghcr.io/iabtechlab/uid2-optout:latest
ports:
- "127.0.0.1:8081:8081"
- "127.0.0.1:5090:5005"
volumes:
- ./docker/uid2-optout/conf/default-config.json:/app/conf/default-config.json
- ./docker/uid2-optout/conf/local-e2e-docker-config.json:/app/conf/local-config.json
- ./docker/uid2-optout/mount/:/opt/uid2/optout/
depends_on:
core:
condition: service_healthy
healthcheck:
test: wget --tries=1 --spider http://localhost:8081/ops/healthcheck || exit 1
interval: 5s
networks:
- e2e_default
publicoperator:
container_name: public_operator
image: ghcr.io/iabtechlab/uid2-operator:latest
profiles:
- public
ports:
- "127.0.0.1:8080:8080"
- "127.0.0.1:9080:9080"
- "127.0.0.1:5080:5005"
volumes:
- ./docker/uid2-operator/conf/default-config.json:/app/conf/default-config.json
- ./docker/uid2-operator/conf/local-e2e-docker-config.json:/app/conf/local-config.json
depends_on:
core:
condition: service_healthy
optout:
condition: service_healthy
healthcheck:
test: wget --tries=1 --spider http://localhost:8080/ops/healthcheck || exit 1
interval: 5s
networks:
- e2e_default
networks:
e2e_default:
external: true
driver: bridge