Set up your Smartr. Gateway
Setting up the Smartr gateway allows you to streamline interactions between your local setup and Smartr's cloud services, making it easier to manage your projects.
Create a Gateway Folder
Create docker-compose.yaml file
services:
smartr-gateway:
image: smartrcode/gateway:latest
env_file:
- .env
container_name: smartr-gateway
ports:
- ${SMARTR_GATEWAY_PORT}:${SMARTR_GATEWAY_PORT}
hostname: smartr-gateway
restart: always
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ${ROOT_USER_DIRECTORY}/.smartr:/home/node/.smartr
- ${MOUNTED_PROJECTS_DIRECTORY}:${DOCKER_PROJECTS_DIRECTORY}
networks:
- smartr_default
sql-server:
container_name: sql-server
hostname: smartr-sql
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
ACCEPT_EULA: 'Y'
MSSQL_SA_PASSWORD: ${MSSQL_SA_PASSWORD}
MSSQL_DATA_DIR: /var/opt/mssql/data
MSSQL_PID: 'Developer'
MSSQL_TCP_PORT: 1433
ports:
- "1456:1433"
networks:
- smartr_default
volumes:
- sql_data:/var/opt/mssql
networks:
smartr_default:
volumes:
sql_data:Create a .env file
Run the Gateway
Last updated