watch/docker-compose.yml

32 lines
663 B
YAML
Raw Normal View History

2024-09-02 18:34:30 +00:00
# Use postgres/example user/password credentials
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:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
volumes:
- watch_data:/var/lib/postgres/data
2024-09-02 21:43:49 +00:00
ports:
- 5432:5432
2024-09-02 18:34:30 +00:00
environment:
2024-09-02 21:43:49 +00:00
POSTGRES_DB: watch
POSTGRES_USER: watch
2024-09-02 18:34:30 +00:00
POSTGRES_PASSWORD: watch
adminer:
image: adminer
restart: always
ports:
- 8080:8080
volumes:
watch_data: {}