-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 1.02 KB
/
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
46
47
48
49
50
services:
postgres:
image: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5433:5432
volumes:
- postgres_data:/var/lib/postgresql/data/:cached
tty: true
redis:
restart: always
image: redis:latest
ports:
- 6380:6379
volumes:
- redis_data:/data/
tty: true
server:
restart: always
tty: true
build:
context: .
dockerfile: Dockerfile
environment:
- REDIS_CONNECTION_STRING=redis://redis:6379
- DATABASE_CONNECTION_STRING=postgresql://postgres:postgres@postgres:5432?schema=public
env_file:
- .env.development
volumes:
- .:/usr/src/app
- ./node_modules/.prisma:/usr/src/app/node_modules/.prisma
- node_modules:/usr/src/app/node_modules/
- /usr/src/app/dist
ports:
- 4000:4000
depends_on:
- postgres
- redis
volumes:
redis_data:
driver: local
postgres_data:
driver: local
node_modules: