-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (53 loc) · 1.13 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
version: '3'
services:
db:
container_name: psql
restart: always
image: postgres:16
volumes:
- ./db/data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: your_password
POSTGRES_DB: your_database
ports:
- "5435:5435"
networks:
- psql-pgql
graphql:
container_name: pgql
restart: always
image: graphile/postgraphile
depends_on:
- db
environment:
DATABASE_URL: postgres://postgres:your_password@db:5435/your_database
POSTGRAPHILE_CORS: "true"
command: [
"--cors",
"--enhance-graphiql",
"--allow-explain",
"--append-plugins", "@graphile-contrib/pg-simplify-inflector",
"--enable-query-batching",
"--legacy-relations", "omit",
"--schema", "public",
"--host", "0.0.0.0",
"--port", "8090"
]
ports:
- "8090:8090"
networks:
- psql-pgql
sveltekit:
container_name: sveltekit
build:
context: .
ports:
- "4173:4173"
networks:
- psql-pgql
depends_on:
- graphql
networks:
psql-pgql:
driver: bridge