-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test-remote.yml
43 lines (43 loc) · 1.54 KB
/
docker-compose-test-remote.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
services:
test:
depends_on:
api1:
condition: service_healthy
build:
context: .
dockerfile_inline: |
FROM denoland/deno:alpine-2.1.11
RUN apk add --no-cache curl bash
command: deno test --watch --unsafely-ignore-certificate-errors --allow-all --unstable-cron --unstable-kv .
working_dir: /app/app/test
extra_hosts:
- host.docker.internal:host-gateway
- worker-metaframe-api1.dev:host-gateway
- worker-metaframe-api2.dev:host-gateway
- worker-metaframe.localhost:host-gateway
- minio.worker-metaframe.localhost:host-gateway
environment:
# APP_PORT is only needed for the upload/curl/dns/docker fiasco
- APP_PORT=${APP_PORT:-443}
- IGNORE_CERTIFICATE_ERRORS=true
- NPM_CONFIG_REGISTRY=${NPM_CONFIG_REGISTRY:-}
- API_URL=http://api1:8081
- DENO_DIR=/deno
- DENO_INSTALL_ROOT=/deno
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-minioaccesskey123123}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-minioaccesskey123123}
- AWS_REGION=${AWS_REGION:-us-west-2}
- AWS_ENDPOINT=${AWS_ENDPOINT:-https://minio.worker-metaframe.localhost}:${APP_PORT:-443}
- AWS_S3_BUCKET=${AWS_S3_BUCKET:-localbucket}
- DENO_KV_ACCESS_TOKEN=localdenoaccesstoken
- DENO_KV_URL=http://denokv:4512
- REDIS_URL=redis://redis:6379
volumes:
- deno:/deno
- .:/app
labels:
- "custom.label=worker-metaframe.localhost"
networks:
- default
logging:
driver: ${LOGGING_TESTS:-json-file}