1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 19:34:34 +00:00

chore: docker bind mount + sasjs/cli in container

This commit is contained in:
Saad Jutt
2021-11-17 07:49:42 +05:00
parent 455367f10a
commit 3c328dbab2
15 changed files with 197 additions and 62 deletions

View File

@@ -7,20 +7,25 @@ services:
context: .
dockerfile: DockerfileApi
environment:
MODE: server
CORS: enable
MODE: ${MODE}
CORS: ${CORS}
PORT: ${PORT_API}
PORT_WEB: ${PORT_WEB}
ACCESS_TOKEN_SECRET: ${ACCESS_TOKEN_SECRET}
REFRESH_TOKEN_SECRET: ${REFRESH_TOKEN_SECRET}
AUTH_CODE_SECRET: ${AUTH_CODE_SECRET}
DB_CONNECT: mongodb://mongodb:27017/sasjs
SAS_PATH: /usr/server/sasexe
expose:
- ${PORT_API}
ports:
- ${PORT_API}:${PORT_API}
volumes:
- ./api:/usr/server/api
- type: bind
source: ${SAS_EXEC}
target: /usr/server/sasexe
read_only: true
links:
- mongodb