-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-docker-compose.yml
More file actions
86 lines (80 loc) · 1.58 KB
/
dev-docker-compose.yml
File metadata and controls
86 lines (80 loc) · 1.58 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3.9"
services:
backend:
build:
context: ./backend
dockerfile: Dev.Dockerfile
deploy:
replicas: 1
hostname: backend
depends_on:
- postgres
- redis
links:
- postgres
- redis
environment:
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=prae
- DB_PASSWORD=password
- DB_NAME=prae
- CACHE_HOST=redis
- CACHE_PORT=6379
- KINDE_CLIENT_ID=youridhere
- KINDE_CLIENT_SECRET=yoursecrethere
- KINDE_HOST=https://your.prefix.kinde.com
- KINDE_REDIRECT_URL=http://127.0.0.1:80/api/v1/kinde/callback
- KINDE_AUDIENCE_API=127.0.0.1
- GRANT_TYPE=AUTHORIZATION_CODE
volumes:
- ./backend:/opt/prae-be
postgres:
image: postgres
hostname: postgres
environment:
- POSTGRES_DB=prae
- POSTGRES_USER=prae
- POSTGRES_PASSWORD=password
ports:
- 5432:5432
redis:
image: redis
hostname: redis
ulimits:
memlock: -1
frontend:
build:
context: ./frontend
dockerfile: Dev.Dockerfile
deploy:
replicas: 1
hostname: frontend
ports:
- "3000:3000"
depends_on:
- backend
links:
- backend
volumes:
- ./frontend/src:/opt/prae-fe/src
ingress:
image: nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- backend
- frontend
links:
- backend
- frontend
adminer:
image: adminer
ports:
- "8080:8080"
depends_on:
- postgres
links:
- postgres