-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (39 loc) · 878 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
39 lines (39 loc) · 878 Bytes
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
version: '3.7'
services:
backend:
build:
context: ./emve-server
target: dev
ports:
- '4000:4000'
environment:
PORT: 4000
DB_HOST: 'db'
DB_USER: 'postgres'
DB_DATABASE: 'emve'
volumes:
- ./emve-server:/usr/src/app
depends_on:
- db
client:
build:
context: ./emve-client
target: dev
ports:
- '3035:3035'
environment:
PORT: 3035
GRAPHQL_ENDPOINT_SERVER: 'http://backend:4000'
GRAPHQL_ENDPOINT_CLIENT: 'http://localhost:4000'
GRAPHQL_SUBSCRIPTION_ENDPOINT: 'ws://localhost:4000/graphql'
BASE_URL: 'http://localhost:3035'
volumes:
- ./emve-client:/usr/src/app
depends_on:
- backend
db:
image: postgres:11
container_name: emve_postgres
volumes:
- ./postgres_data:/var/lib/postgresql/data
restart: always