jerguero-rs/db/docker-compose.yml

22 lines
529 B
YAML
Raw Normal View History

2024-08-10 21:50:09 +00:00
# Use postgres/example user/password credentials
version: '3.9'
services:
db:
container_name: my-postgres
image: postgres
restart: always
# set shared memory limit when using docker-compose
shm_size: 128mb
# or set shared memory limit when deploy via swarm stack
#volumes:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
environment:
POSTGRES_PASSWORD: 1234567890
POSTGRES_DB: jerguero
ports:
- 5432:5432