-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 982 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=pd8cDXMA
- 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/nestjs-auth-service:release
container_name: nestjs-auth-service
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:pd8cDXMA@postgres:5432/postgres?schema=public&sslmode=prefer
volumes:
redis-data:
postgres-data: