mirror of
https://github.com/databasus/databasus.git
synced 2026-04-06 00:32:03 +02:00
FEATURE (installation): Add installation script
This commit is contained in:
31
docker-compose.yml.example
Normal file
31
docker-compose.yml.example
Normal file
@@ -0,0 +1,31 @@
|
||||
version: "3"
|
||||
|
||||
# Do not use this file in production or VPS. This
|
||||
# file is indended for local development only. To
|
||||
# run on your machine - read README.md
|
||||
|
||||
services:
|
||||
# For local development only to test build. Do
|
||||
# not use in production or VPS
|
||||
postgresus-local:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "4005:4005"
|
||||
depends_on:
|
||||
- postgresus-db
|
||||
|
||||
postgresus-db:
|
||||
image: postgres:17
|
||||
# we use default values, but do not expose
|
||||
# PostgreSQL ports so it is safe
|
||||
environment:
|
||||
- POSTGRES_DB=postgresus
|
||||
- POSTGRES_USER=postgresus
|
||||
- POSTGRES_PASSWORD=postgresus
|
||||
volumes:
|
||||
- ./pgdata:/var/lib/postgresql/data
|
||||
container_name: postgresus-db
|
||||
command: -p 5437
|
||||
shm_size: 10gb
|
||||
Reference in New Issue
Block a user