-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-prod.yml
More file actions
45 lines (41 loc) · 981 Bytes
/
docker-compose-prod.yml
File metadata and controls
45 lines (41 loc) · 981 Bytes
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
version: '3.7'
services:
client:
container_name: client
build:
context: ./service/mentor-portal-client
dockerfile: Dockerfile
ports:
- ${FRONTEND_PORTS}:${FRONTEND_PORTS}
environment:
- API_BASE_URL
- CLIENT_BASE_URL
networks:
- front-end
server:
container_name: server
build:
context: ./service/mentor-portal-api
dockerfile: Dockerfile
args:
DEBUG_ARGS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
ports:
- ${API_PORTS_ONE}:${API_PORTS_ONE}
- ${API_PORTS_TWO}:${API_PORTS_TWO}
env_file:
- .env
environment:
- DATABASE_ROOT
- EXPOSED_DB_PORT
- MYSQL_DATABASE_NAME
- MYSQL_DATABASE_USER
- MYSQL_DATABASE_PASSWORD
- CLIENT_BASE_URL
- APP_SECRET
- TOKEN_EXPIRATION_IN_MINUTES
restart: unless-stopped
networks:
- front-end
networks:
front-end:
name: front-end