-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
52 lines (48 loc) · 1.06 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
51
52
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.34
depends_on:
- db
restart: always
ports:
- '4466:4466'
networks:
- db
environment:
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: postgres
host: ${POSTGRES_HOST}
port: ${POSTGRES_PORT}
user: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
ssl: ${POSTGRES_SSL}
database: ${POSTGRES_DATABASE}
connectionLimit: ${POSTGRES_CONNECTION_COUNT}
migrations: true
managementSchema: management
db:
image: postgres:9.6
environment:
- "PGDATA=/var/lib/postgresql/data/pgdata"
- "POSTGRES_USER=${POSTGRES_USER}"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
ports:
- 5432:5432
networks:
- db
restart: unless-stopped
volumes:
- db_data:/var/lib/postgresql/data
redis:
image: redis
ports:
- 6379:6379
networks:
db:
driver: bridge
volumes:
db_data: