-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 1000 Bytes
/
docker-compose.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
version: '3.8'
services:
postgres:
image: postgres:13
restart: on-failure
ports:
- 5432:5432
environment:
- POSTGRES_USER=prisma
- POSTGRES_PASSWORD=topsecret
- POSTGRES_DB=postgres
- DB_PORT=5432
- DB_SCHEMA=public
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
image: redis/redis-stack:latest
restart: on-failure
ports:
- 8001:8001
- 6379:6379
volumes:
- redis-data:/data
# api:
# image: ghcr.io/pnstack/template-nest-prisma:release
# depends_on:
# - postgres
# - redis
# restart: on-failure
# ports:
# - 4005:4005
# volumes:
# - /app/node_modules
# - .:/app
# env_file:
# - .env
# environment:
# - REDIS_HOST=redis
# - DB_HOST=postgres
# - DATABASE_URL=postgresql://prisma:topsecret@postgres:5432/postgres?schema=public&sslmode=prefer
# command: npm run dev
volumes:
redis-data:
postgres-data: