Skip to content

Commit

Permalink
create a docker-compose file for Mac (bcgov#2861)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxio authored Jun 8, 2024
1 parent 201f5aa commit b66ef35
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions auth-api/tests/docker/docker-cmpose-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
version: "3"

services:
keycloak:
image: sleighzy/keycloak:16.1.0-arm64
ports:
- "8081:8081"
platform: linux/arm64
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
command: -b 0.0.0.0 -Djboss.http.port=8081 -Dkeycloak.migration.action=import -Dkeycloak.migration.provider=dir -Dkeycloak.migration.dir=/tmp/keycloak/test -Dkeycloak.migration.strategy=OVERWRITE_EXISTING
healthcheck:
test:
[
"CMD",
"curl",
"--fail",
"http://localhost:8081/auth/realms/demo || exit 1",
]
interval: 30s
timeout: 10s
retries: 10
volumes:
- ./setup:/tmp/keycloak/test/
nats:
image: nats-streaming
restart: always
expose:
- 4222
- 8222
labels:
- entity.services=nats
ports:
- 4222:4222
- 8222:8222
tty: true

proxy:
image: nginx:alpine
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- '8080:80'
depends_on:
- notify
- bcol
- pay

notify:
image: stoplight/prism:3.3.0
command: >
mock -p 4010 --host 0.0.0.0
https://raw.githubusercontent.com/bcgov/sbc-auth/main/docs/docs/api_contract/notify-api-1.0.0.yaml
bcol:
image: stoplight/prism:3.3.0
command: >
mock -p 4010 --host 0.0.0.0
https://raw.githubusercontent.com/bcgov/sbc-pay/main/docs/docs/api_contract/bcol-api-1.0.0.yaml
pay:
image: stoplight/prism:3.3.0
command: >
mock -p 4010 --host 0.0.0.0
https://raw.githubusercontent.com/bcgov/sbc-pay/main/docs/docs/api_contract/pay-api.yaml
minio:
image: 'bitnami/minio:2022.2.5'
ports:
- '9000:9000'
networks:
- minio-tier
environment:
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=minio123
- MINIO_DEFAULT_BUCKETS=accounts

networks:
minio-tier:
driver: bridge

0 comments on commit b66ef35

Please sign in to comment.