forked from taimurtak/garnet-oss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
54 lines (54 loc) · 1.78 KB
/
docker-compose.dev.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
version: '3'
services:
db:
container_name: postgres
environment:
POSTGRES_PASSWORD: garnet
POSTGRES_USER: garnet
image: postgres:13
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
backend:
container_name: garnet_backend
environment:
#these are dev mode placeholders (not for prod use)
DB_USERNAME: garnet
DB_PASSWORD: garnet
DB_NAME: garnet
DB_HOST: db
DB_TYPE: postgres
DB_LOGGING: "true"
API_DOCUMENTATION_ENABLED: "true"
FRONTEND_URL: http://localhost:3000
BACKEND_URL: http://localhost:8080/api
AUTH_JWT_EXPIRES_IN: 365 days
ENCRYPTION_KEY: <randomly-generated-256-bit-key>
AUTH_JWT_SECRET: <randomly-generated-UUID-string>
AUTH_SOCIAL_GITHUB_CLIENT_ID: <GitHub-OAuth-client-ID>
AUTH_SOCIAL_GITHUB_CLIENT_SECRET: <GitHub-OAuth-client-secret>
AUTH_SOCIAL_GITHUB_CALLBACK_URL: http://localhost:8080/api/auth/social/github/callback
TENANT_MODE: multi
# image: garnet.docker.scarf.sh/garnetlabs/garnet-oss-backend:latest
build:
context: ./backend
dockerfile: dev.Dockerfile
links:
- db:db
ports:
- 8080:8080
working_dir: /app
command: npm run start:db
frontend:
container_name: garnet_frontend
# image: garnet.docker.scarf.sh/garnetlabs/garnet-oss-frontend:latest
build:
context: ./frontend
dockerfile: dev.Dockerfile
ports:
- 3000:3000
working_dir: /app
command: npm start
volumes:
postgres-data: