-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.e2e.yml
88 lines (77 loc) · 2.21 KB
/
docker-compose.e2e.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
version: "3.9"
services:
postgres:
image: postgres:13
environment:
POSTGRES_USER: ytfe2e
POSTGRES_PASSWORD: ytfe2e
POSTGRES_DB: ytfe2e
healthcheck:
test: ["CMD-SHELL", "pg_isready -d ytfe2e"]
start_period: 2s
interval: 1s
server:
image: ghcr.io/yes-theory-fam/yestheory-family-server:COMMIT_HASH
hostname: server
ports:
- "5000:5000"
environment:
PRISMA_DATABASE_URL: "postgresql://ytfe2e:ytfe2e@postgres:5432/ytfe2e?schema=public"
FRONTEND_HOST: "http://web:3000"
IS_E2E: "true"
DISCORD_BOT_TOKEN: skipped
DISCORD_TARGET_GUILD: skipped
DISCORD_ADMIN_ID: skipped
YESBOT_API_TOKEN: yesbot-api-token
DISCORD_CLIENT_ID: skipped
DISCORD_CLIENT_SECRET: skipped
DISCORD_SCOPES: skipped
CMS_ENDPOINT: "http://web:3000/api/graphql"
CMS_API_KEY: e2e-api-key
depends_on:
postgres:
condition: 'service_healthy'
web:
image: ghcr.io/yes-theory-fam/yestheory-family-web:COMMIT_HASH
environment:
SERVER_BACKEND_GRAPHQL_URL: http://server:5000/graphql
FRONTEND_URL: http://web:3000
PAYLOAD_SECRET: e2e-secret
DATABASE_URI: postgresql://ytfe2e:ytfe2e@postgres:5432/payload?schema=public
TYPESENSE_API_URL: http://typesense:8108
TYPESENSE_API_KEY: 1234567890
BACKEND_URL: http://server:5000
INTERNAL_BACKEND_URL: http://server:5001
YESBOT_API_AUTH_TOKEN: yesbot-api-token
INITIAL_ADMIN_ID: 1234567890
PAYLOAD_API_KEY: e2e-api-key
ports:
- "3000:3000"
depends_on:
- server
typesense:
image: typesense/typesense:0.25.1
restart: unless-stopped
environment:
TYPESENSE_API_KEY: 1234567890
TYPESENSE_DATA_DIR: /data
ports:
- "8108:8108"
volumes:
- "typesense-data:/data"
playwright:
image: mcr.microsoft.com/playwright:v1.47.2-focal
entrypoint: "/bin/bash"
command: "./wait-for-it.sh -t 30 --strict server:5000 -- ./install-and-run.sh"
working_dir: /e2e
volumes:
- ./packages/e2e:/e2e
environment:
FRONTEND_URL: http://web:3000
depends_on:
- web
- server
- postgres
- typesense
volumes:
typesense-data: