Skip to main content

Docker

We recommend to deploy the application and required services via docker-compose and a docker-compose file similar to this.

services:
postgresql:
image: timescale/timescaledb-ha:pg15.7-ts2.15.2-all-oss
shm_size: '1gb'
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres

mosquitto:
image: eclipse-mosquitto
command: mosquitto -c /mosquitto-no-auth.conf
volumes:
- type: volume
source: data
target: /mosquitto/data/
ports:
- target: 1883
published: 1883
protocol: tcp
mode: host

nginx:
network_mode: host
image: nginx
ports:
- 8080:80
volumes:
- ./dev-config/nginx.conf:/etc/nginx/nginx.conf

frontend:
build:
context: ./frontend
ports:
- 3000:3000
environment:
- NEXT_PUBLIC_HOST=http://localhost:3001
info

You can find a development docker-compose file in the projects repo here.