-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
35 lines (33 loc) · 1.06 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
version: '3'
volumes:
postgres_data:
driver: local
services:
# Create service demo-fake-api who uses node 18 on port 3000 and code is in packages/demo-fake-api folder.
demo-fake-api:
image: node:18
working_dir: /app/packages/demo-fake-api
command: yarn start
volumes:
- '.:/app'
ports:
- '3000:3000'
environment:
- AUTH0_DOMAIN=${VITE_AUTH0_DOMAIN}
- AUTH0_AUDIENCE=${VITE_AUTH0_AUDIENCE}
demo-react-admin:
image: node:18
working_dir: /app/packages/demo-react-admin
command: yarn dev
volumes:
- '.:/app'
environment:
- VITE_AUTH0_DOMAIN=${VITE_AUTH0_DOMAIN}
- VITE_AUTH0_CLIENT_ID=${VITE_AUTH0_CLIENT_ID}
- VITE_AUTH0_AUDIENCE=${VITE_AUTH0_AUDIENCE}
- VITE_LOGIN_REDIRECT_URL=${VITE_LOGIN_REDIRECT_URL}
- VITE_LOGOUT_REDIRECT_URL=${VITE_LOGOUT_REDIRECT_URL}
ports:
- '8081:8081'
depends_on:
- demo-fake-api