source: docker-compose.yml

Last change on this file was 2e0035f, checked in by Acko <lavurovski.a65@…>, 8 days ago

Initial Commit

  • Property mode set to 100644
File size: 796 bytes
Line 
1# OPTIONAL - local database for working offline, without the faculty tunnel.
2# Runs on 5433 so it cannot collide with a PostgreSQL service installed on
3# Windows (which holds 5432). Use it with the Spring profile "local".
4# docker compose up -d
5# run the app with --spring.profiles.active=local
6services:
7 db:
8 image: postgres:16
9 container_name: nutritioneer-db
10 environment:
11 POSTGRES_DB: nutritioneer
12 POSTGRES_USER: postgres
13 POSTGRES_PASSWORD: postgres
14 ports:
15 - "5433:5432"
16 volumes:
17 - nutritioneer-data:/var/lib/postgresql/data
18 # Both scripts run automatically the first time the volume is created,
19 # in filename order. Delete the volume to reload them.
20 - ./sql:/docker-entrypoint-initdb.d:ro
21
22volumes:
23 nutritioneer-data:
Note: See TracBrowser for help on using the repository browser.