1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 19:34:34 +00:00
Files
server/docker-compose.prod.yml
2021-11-16 05:07:22 +05:00

42 lines
819 B
YAML

version: '3.4'
services:
sasjs_server_prod:
image: sasjs_server_prod
build:
context: .
dockerfile: DockerfileProd
environment:
MODE: server
CORS: disable
PORT: ${PORT_API}
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_EXEC: ${SAS_EXEC}
expose:
- ${PORT_API}
ports:
- ${PORT_API}:${PORT_API}
links:
- mongodb
mongodb:
image: mongo:latest
ports:
- 27017:27017
volumes:
- data:/data/db
mongo-seed-users:
build: ./mongo-seed/users
links:
- mongodb
mongo-seed-clients:
build: ./mongo-seed/clients
links:
- mongodb
volumes:
data: