-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (57 loc) · 1.26 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
version: "3.8"
services:
db:
image: postgres:16.1-alpine3.19
container_name: com617-db
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- db:/var/lib/postgresql/data
graphql-engine:
image: hasura/graphql-engine:v2.15.2
container_name: com617-hasura
ports:
- "8080:8080"
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgres@com617-db:5432/postgres
#HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
restart: always
depends_on:
- db
server:
image: com617-server
build:
context: .
target: server-dev
dockerfile: Dockerfile
container_name: com617-server
ports:
- "3000:3000"
volumes:
- ./server:/usr/src/app
- /usr/src/app/node_modules
client:
image: com617-client
build:
context: .
target: client-dev
dockerfile: Dockerfile
container_name: com617-client
ports:
- "5173:5173"
volumes:
- ./client:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- server
networks:
default:
name: project-network
volumes:
db:
driver: local