-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 1.22 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
version: '3'
services:
backend:
build: ./server
restart: always
ports:
- ${GITGUD_BACKEND_PORT}:8000
environment:
GITGUD_PRISMA_ENDPOINT: ${GITGUD_PRISMA_ENDPOINT}
next:
build: ./client
restart: always
ports:
- ${GITGUD_NEXT_PORT}:3000
prisma:
image: prismagraphql/prisma:1.32
restart: always
ports:
- ${GITGUD_PRISMA_PORT}:4466
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
user: prisma
password: prisma
rawAccess: false
port: 5432
migrations: true
postgres:
image: postgres
restart: always
# Uncomment the next two lines to connect to your your database from outside the Docker environment, e.g. using a database GUI like Postico
# ports:
# - "5432:5432"
environment:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
volumes:
- gitgud-postgres:/var/lib/postgresql/data
volumes:
gitgud-postgres: