-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (68 loc) · 1.51 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '3'
services:
caddy:
build:
context: ./caddy/dev
dockerfile: dev.Dockerfile
volumes:
- caddy:/root/.caddy
env_file:
- ./.env/.production/.caddy
ports:
- "2015:2015"
- "443:443"
depends_on:
- client
api:
build:
context: ./server
dockerfile: dev.Dockerfile
volumes:
- ./server:/usr/app
depends_on:
- prisma
expose:
- "4000"
environment:
APP_SECRET: secret
PRISMA_ENDPOINT: http://prisma:4466/api/dev
client:
build:
context: ./client
dockerfile: dev.Dockerfile
volumes:
- ./client:/usr/app
depends_on:
- api
ports:
- "9009:9009"
prisma:
image: prismagraphql/prisma:1.26
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
# managementApiSecret: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InNlcnZpY2UiOiJkZWZhdWx0QGRlZmF1bHQiLCJyb2xlcyI6WyJhZG1pbiJdfSwiaWF0IjoxNTUwODMzMjI3LCJleHAiOjE1NTE0MzgwMjd9.c5WdayFgkmsxt8O9SkcwBSQdzwtavF3bxNUhpkl6CQQ
databases:
default:
connector: postgres
host: postgres-db
port: 5432
user: prisma
password: prisma
migrations: true
depends_on:
- postgres-db
postgres-db:
image: postgres
restart: always
environment:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres:
caddy: {}