-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
115 lines (108 loc) · 2.78 KB
/
docker-compose.yml
File metadata and controls
115 lines (108 loc) · 2.78 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
version: '3.8'
services:
mongodb:
image: mongo:latest
container_name: amberops_mongodb
ports:
- '27017:27017'
volumes:
- mongo-data:/data/db
restart: unless-stopped
auth:
build:
context: .
dockerfile: Dockerfile
target: backend
args:
APP_NAME: auth
container_name: amberops_auth_service
ports:
- '3002:3000'
environment:
- MONGODB_URI=mongodb://mongodb:27017/amberops
- JWT_SECRET=${JWT_SECRET}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
- NEXT_PUBLIC_HOME_URL=http://localhost:3001
- NEXT_PUBLIC_WEB_URL=http://localhost:3000
- NEXT_PUBLIC_ADMIN_URL=http://localhost:3003
depends_on:
- mongodb
restart: unless-stopped
backend:
build:
context: .
dockerfile: Dockerfile
target: backend
args:
APP_NAME: backend
container_name: amberops_backend_service
ports:
- '3004:3000'
environment:
- MONGODB_URI=mongodb://mongodb:27017/amberops
- NEXT_PUBLIC_HOME_URL=http://localhost:3001
- NEXT_PUBLIC_WEB_URL=http://localhost:3000
- NEXT_PUBLIC_ADMIN_URL=http://localhost:3003
depends_on:
- mongodb
restart: unless-stopped
home:
build:
context: .
dockerfile: Dockerfile
target: frontend
args:
APP_NAME: home
container_name: amberops_home_app
ports:
- '3001:3000'
environment:
- NEXT_PUBLIC_AUTH_API_URL=http://auth:3000/api
- NEXT_PUBLIC_API_BASE_URL=http://backend:3000/api/v1
- NEXT_PUBLIC_ADMIN_URL=http://localhost:3003
- NEXT_PUBLIC_WEB_URL=http://localhost:3000
depends_on:
- auth
- backend
restart: unless-stopped
web:
build:
context: .
dockerfile: Dockerfile
target: frontend
args:
APP_NAME: web
container_name: amberops_web_app
ports:
- '3000:3000'
environment:
- NEXT_PUBLIC_API_BASE_URL=http://backend:3000/api/v1
- NEXT_PUBLIC_HOME_URL=http://localhost:3001
- NEXT_PUBLIC_ADMIN_URL=http://localhost:3003
- GEMINI_API_KEY=${GEMINI_API_KEY}
depends_on:
- backend
restart: unless-stopped
admin:
build:
context: .
dockerfile: Dockerfile
target: frontend
args:
APP_NAME: admin
container_name: amberops_admin_app
ports:
- '3003:3000'
environment:
- NEXT_PUBLIC_API_BASE_URL=http://backend:3000/api/v1
- NEXT_PUBLIC_HOME_URL=http://localhost:3001
- NEXT_PUBLIC_WEB_URL=http://localhost:3000
depends_on:
- backend
restart: unless-stopped
volumes:
mongo-data:
driver: local