forked from taskany-inc/issues
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.ci.yml
More file actions
40 lines (40 loc) · 1000 Bytes
/
docker-compose.ci.yml
File metadata and controls
40 lines (40 loc) · 1000 Bytes
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
version: "3"
services:
db:
image: "postgres:11.6"
container_name: "prisma-pg"
environment:
- POSTGRES_USER=prisma
- POSTGRES_PASSWORD=hilly-sand-pit
- POSTGRES_DB=prisma
ports:
- "5432:5432"
volumes:
- ./postgres/data:/var/lib/postgresql/data
maildev:
image: maildev/maildev
container_name: "maildev-taskany"
ports:
- "1080:1080"
- "1025:1025"
app:
stdin_open: true
container_name: app
ports:
- 3000:3000
build:
context: .
dockerfile: Dockerfile.dev
depends_on:
- db
environment:
- DATABASE_URL=postgresql://prisma:hilly-sand-pit@db:5432/prisma?schema=prisma-pg-test
- NEXTAUTH_URL=http://localhost:3000
- NEXT_PUBLIC_NEXTAUTH_URL=http://localhost:3000
- NEXTAUTH_SECRET=ololo
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/auth/signin"]
interval: 1s
timeout: 10s
retries: 10
start_period: 3s