Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker-compose file to e2e #4

Merged
merged 4 commits into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
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

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
depends_on:
localstack:
condition: service_healthy
healthcheck:
test: wget --tries=1 --spider http://localhost:8088/ops/healthcheck || exit 1
interval: 10s

optout:
container_name: optout
image: ghcr.io/iabtechlab/uid2-optout:latest
ports:
- "127.0.0.1:8090: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/
cYKatherine marked this conversation as resolved.
Show resolved Hide resolved
depends_on:
core:
condition: service_healthy
healthcheck:
test: wget --tries=1 --spider http://localhost:8081/ops/healthcheck || exit 1
interval: 5s

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