-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
112 lines (99 loc) · 2.32 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
112 lines (99 loc) · 2.32 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
services:
db:
profiles: ["dev"]
image: postgres:17.7
restart: always
container_name: echo-web-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: echo-web
ports:
- 5432:5432
volumes:
- db:/var/lib/postgresql/data
redis:
profiles: ["dev"]
image: redis:7-alpine
container_name: echo-web-redis
ports:
- "6379:6379"
volumes:
- redis:/data
db-test:
profiles: ["test"]
image: postgres:17.7
container_name: echo-web-test-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: echo-web-test
ports:
- 5433:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- db-test:/var/lib/postgresql/data
e2e:
profiles: ["test"]
build:
context: .
dockerfile: playwright/Dockerfile
container_name: echo-web-e2e-tests
depends_on:
db-test:
condition: service_healthy
environment:
# Database
DATABASE_URL: postgres://postgres:postgres@db-test:5432/echo-web-test
# Admin
ADMIN_KEY: foobar
# API
UNO_API_PORT: 8000
NEXT_PUBLIC_API_URL: http://localhost:8000
# Sanity
NEXT_PUBLIC_SANITY_DATASET: testing
PUBLIC_SANITY_DATASET: testing
PUBLIC_SANITY_PROJECT_ID: pgq2pd26
# Feide
FEIDE_CLIENT_ID: test
FEIDE_CLIENT_SECRET: test
AUTH_SECRET: foobar
# Playwright
HEADLESS: "true"
ports:
- 9323:9323
volumes:
# Mount test results and reports back to host
- ./playwright/playwright-report:/app/playwright/playwright-report
- ./playwright/test-results:/app/playwright/test-results
minio:
profiles: ["dev"]
image: pgsty/silo
container_name: echo-web-minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 10s
timeout: 5s
retries: 5
volumes:
db:
driver: local
db-test:
driver: local
minio:
driver: local
redis:
driver: local