-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.org.yml
More file actions
71 lines (66 loc) · 1.86 KB
/
docker-compose.org.yml
File metadata and controls
71 lines (66 loc) · 1.86 KB
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
# Dedicated compose stack for org-focused integration tests.
name: keychain-mcp-org
services:
vaultwarden-org:
image: vaultwarden/server:1.35.4-alpine
environment:
DOMAIN: https://vaultwarden-org-https
SIGNUPS_ALLOWED: "true"
WEBSOCKET_ENABLED: "false"
ADMIN_TOKEN: devtoken
volumes:
- vaultwarden-org-data:/data
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/api/alive >/dev/null 2>&1 || exit 1"]
interval: 5s
timeout: 2s
retries: 30
vaultwarden-org-https:
image: caddy:2.11.2-alpine
volumes:
- ./Caddyfile.org.test:/etc/caddy/Caddyfile:ro
depends_on:
vaultwarden-org:
condition: service_healthy
bootstrap-org:
image: mcr.microsoft.com/playwright:v1.58.2-jammy
working_dir: /work
volumes:
- .:/work
- node-modules-org:/work/node_modules
env_file:
- .env.test-org
environment:
VW_BASE_URL: https://vaultwarden-org-https
VW_APIKEY_ENV_FILE: tmp/vaultwarden-bootstrap/apikey-org.env
depends_on:
vaultwarden-org-https:
condition: service_started
command: sh -lc "npm install && node scripts/vaultwarden-bootstrap.mjs"
tests-org:
build:
context: .
dockerfile: Dockerfile.dev
env_file:
- .env.test-org
volumes:
- .:/app
- node-modules-org:/app/node_modules
- bw-org-test-data:/data
environment:
HOME: /data
NODE_ENV: test
BW_HOST: https://vaultwarden-org-https
NODE_TLS_REJECT_UNAUTHORIZED: "0"
KEYCHAIN_SYNC_ON_WRITE: "false"
user: "0:0"
depends_on:
vaultwarden-org:
condition: service_healthy
vaultwarden-org-https:
condition: service_started
command: sh -lc "npm install && npm run test:integration"
volumes:
vaultwarden-org-data: {}
bw-org-test-data: {}
node-modules-org: {}