How Can We Help?
Search for answers or browse our knowledge base.
Docker Compose
SyncNow can be deployed from with a docker compose file.
Docker Environment Parameters
Environment Parameter | Default Value |
---|---|
SETTINGS__DATABASECONFIGURATION__DATABASETYPE | SQLLite |
SETTINGS__DATABASECONFIGURATION__SERVER | localhost |
SETTINGS__DATABASECONFIGURATION__PORT | 5432 |
SETTINGS__DATABASECONFIGURATION__USERNAME | PostrgeSQL |
SETTINGS__DATABASECONFIGURATION__PASSWORD | Q1w2e3r4t5y6 |
SETTINGS__DATABASECONFIGURATION__WINDOWSAUTH | FALSE |
SETTINGS__DATABASECONFIGURATION__TRANSPORTENCRYPT | FALSE |
SETTINGS__DATABASECONFIGURATION__DATABASE | SyncNow |
KESTREL__ENDPOINTS__HTTP__URL | http://+:5030 |
KESTREL__ENDPOINTS__HTTPS__URL | http://+:5031 |
SyncNow – PostrgreSQL
Below is a docker-compose file with postgres and SyncNow
version: '3.3'
services:
postgres:
container_name: postgres
image: postgres:12
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: Q1w2e3r4t5y6
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
networks:
- syncnow-net
restart: unless-stopped
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin4@pgadmin.org
PGADMIN_DEFAULT_PASSWORD: admin
volumes:
- pgadmin:/root/.pgadmin
ports:
- "5050:80"
networks:
- syncnow-net
restart: unless-stopped
syncserver:
image: repo.syncnow.io/syncnowserver:latest
container_name: syncserver
ports:
- '5030:5030'
environment:
- "ASPNETCORE_Environment=Development"
- "ASPNETCORE_URLS=http://*:5030"
- "SETTINGS__DATABASECONFIGURATION__DATABASETYPE=PostgreSQL"
- "SETTINGS__DATABASECONFIGURATION__SERVER=postgres"
- "SETTINGS__DATABASECONFIGURATION__PORT=5432"
- "SETTINGS__DATABASECONFIGURATION__USERNAME=postgres"
- "SETTINGS__DATABASECONFIGURATION__PASSWORD=yiukRx79oJJS29hk3ekJlQ=="
- "SETTINGS__DATABASECONFIGURATION__TRANSPORTENCRYPT=False"
- "SETTINGS__DATABASECONFIGURATION__DATABASE=SyncNow"
- "KESTREL__ENDPOINTS__HTTP__URL=http://+:5030"
- "KESTREL__ENDPOINTS__HTTPS__URL=http://+:5031"
networks:
- syncnow-net
depends_on:
- postgres
networks:
syncnow-net:
volumes:
postgres:
pgadmin:
SyncNow – SQL Server (MSSQL)
version: '3.3'
services:
mssql:
image: 'microsoft/mssql-server-linux'
container_name: mssql
ports:
- "1433:1433"
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Q1w2e3r4t5y6
volumes:
- mssql:/var/opt/mssql
networks:
- syncnow-net
syncserver:
image: repo.syncnow.io/syncnowserver:latest
container_name: syncserver
ports:
- '5030:5030'
environment:
- "ASPNETCORE_Environment=Development"
- "ASPNETCORE_URLS=http://*:5030"
- "SETTINGS__DATABASECONFIGURATION__DATABASETYPE=SQLServer"
- "SETTINGS__DATABASECONFIGURATION__SERVER=mssql"
- "SETTINGS__DATABASECONFIGURATION__PORT=1433"
- "SETTINGS__DATABASECONFIGURATION__USERNAME=sa"
- "SETTINGS__DATABASECONFIGURATION__PASSWORD=yiukRx79oJJS29hk3ekJlQ=="
- "SETTINGS__DATABASECONFIGURATION__TRANSPORTENCRYPT=False"
- "SETTINGS__DATABASECONFIGURATION__DATABASE=SyncNow"
- "KESTREL__ENDPOINTS__HTTP__URL=http://+:5030"
- "KESTREL__ENDPOINTS__HTTPS__URL=http://+:5031"
networks:
- syncnow-net
depends_on:
- mssql
networks:
syncnow-net:
volumes:
mssql:
SyncNow – Internal DB
version: '3.3'
services:
syncserver:
image: repo.syncnow.io/syncnowserver:latest
container_name: syncserver
ports:
- '5030:5030'
environment:
- "ASPNETCORE_Environment=Development"
- "KESTREL__ENDPOINTS__HTTP__URL=http://+:5030"
- "KESTREL__ENDPOINTS__HTTPS__URL=http://+:5031"
volumes:
- ./database:/app/database
networks:
- syncnow-net
syncnowui:
image: nexusdev.syncnow.io:8098/syncnowserver:latest
container_name: syncnowwebapp
ports:
- '5031:80'
networks:
- syncnow-net
# volumes:
# sqlliteVol:
networks:
syncnow-net: