-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (43 loc) · 1.08 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
version: '3'
services:
backend:
build:
context: backend
dockerfile: Dockerfile.dev
ports:
- 4000:4000
environment:
PORT: 4000
PROFILE_IMAGE_BUCKET_NAME: ${PROFILE_IMAGE_BUCKET_NAME}
TPM_SQS_QUEUE_URL: ${TPM_SQS_QUEUE_URL}
AWS_PROFILE: ${AWS_PROFILE}
volumes:
- ~/.aws:/root/.aws
- ./backend:/app
- /app/node_modules
working_dir: /app
command: bash -c 'npm run codegen && npm run dev'
healthcheck:
test: ['CMD-SHELL', 'curl -f http://localhost:4000/graphql/health || exit 1']
interval: 30s
timeout: 10s
retries: 3
frontend:
build:
context: frontend
dockerfile: Dockerfile.dev
volumes:
- ./frontend:/app
- /app/node_modules
working_dir: /app
command: npm run start
ports:
- 3000:3000
environment:
REACT_APP_API_GATEWAY_ENDPOINT: http://localhost:4000/
CHOKIDAR_USEPOLLING: true
healthcheck:
test: ['CMD-SHELL', 'curl -f http://localhost:3000 || exit 1']
interval: 30s
timeout: 10s
retries: 3