Docker-based development setup for the Netuno Platform. Docker Compose builds the local netuno image and starts it with PostgreSQL.
- Copy
Dockerfile,docker-compose.yml, andinit-extensions.sqlto the root of your Netuno app. - Open the
docker-compose.ymlfile and replace all occurrences of<netuno-app-name>with your application's actual name.
- In the volume mapping:
volumes:
- .:/srv/netuno/apps/<netuno-app-name>- In the startup command:
command: bash -c "./netuno server app=<netuno-app-name>"To build and start the services:
docker compose up
# 💡 To run in the background, add the -d flag
docker compose up -d- To show netuno logs
docker compose logs -f netuno- Stop containers without removing them
docker compose stop- Stop and remove containers
docker compose down
# 💡 To also remove the database, add the -v flag to remove volumes linked to the containers
docker compose down -v