-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
59 lines (56 loc) · 1.31 KB
/
docker-compose.dev.yaml
File metadata and controls
59 lines (56 loc) · 1.31 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
services:
app:
container_name: saturne-dev
build:
context: .
dockerfile: Dockerfile.dev
working_dir: /app
env_file: .env.local
ports:
- "3000:3000"
- "5555:5555"
volumes:
- .:/app
- saturne-node-modules-dev:/app/node_modules
- saturne-next-cache-dev:/app/.next
environment:
NODE_ENV: development
NEXT_TELEMETRY_DISABLED: 1
command: sh -c "npx prisma generate && npm run dev"
depends_on:
- postgres
postgres:
container_name: saturne-postgres-dev
image: postgres:15-alpine
env_file: .env.local
volumes:
- saturne-postgres-data-dev:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}" ]
interval: 10s
timeout: 5s
retries: 5
cypress:
profiles: [ "e2e" ]
image: cypress/included:14.5.0
working_dir: /e2e
depends_on:
- app
- postgres
env_file:
- .env.local
environment:
CYPRESS_baseUrl: http://app:3000
volumes:
- .:/e2e
- saturne-node-modules-dev:/e2e/node_modules
command: [ "--headless" ]
volumes:
saturne-postgres-data-dev:
driver: local
saturne-node-modules-dev:
driver: local
saturne-next-cache-dev:
driver: local