-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 1.27 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
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.23
container_name: ${PRISMA_CONTAINER_NAME}
restart: always
depends_on:
- postgres
environment:
PRISMA_CONFIG: |
port: 4466
# uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
# managementApiSecret: my-secret
databases:
default:
connector: postgres
host: postgres
port: 5432
user: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
migrations: true
volumes:
- ./scripts/wait-for.sh:/wait-for.sh
entrypoint: /bin/sh
command: ["/wait-for.sh", "postgres:5432", "--", "/app/start.sh"]
postgres:
image: postgres:10
restart: always
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
volumes:
- postgres:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL:
PGADMIN_DEFAULT_PASSWORD:
backend:
build:
context: .
image: graphql-backend
depends_on:
- prisma
environment:
PRISMA_ENDPOINT: http://prisma:4466
PRISMA_SECRET:
APP_SECRET:
volumes:
postgres: