programming-phoenix-liveview/pento/docker-compose.yml

24 lines
515 B
YAML
Raw Permalink Normal View History

2024-08-15 19:14:55 +02:00
---
# Use postgres/example user/password credentials
version: '3.9'
services:
db:
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:
- ./postgres:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
PG_DATA: /var/lib/postgresql/data/pgdata
ports: [5432:5432]
adminer:
image: adminer
restart: always
ports: [8080:8080]