howmuch/deployment/docker-compose.yml

35 lines
670 B
YAML
Raw Normal View History

2024-10-04 19:19:49 +00:00
services:
postgres:
2024-10-13 19:11:23 +00:00
image: postgres:alpine
2024-10-04 19:19:49 +00:00
restart: always
ports:
- "5432:5432"
deploy:
mode: replicated
replicas: 1
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
POSTGRES_DB: howmuch
volumes:
- ../../db_data_howmuch/postgres/:/var/lib/postgresql/data
2024-10-04 19:19:49 +00:00
adminer:
image: adminer
restart: always
ports:
- 8080:8080
2024-10-13 19:11:23 +00:00
redis:
image: redis:alpine
restart: always
ports:
- "6379:6379"
deploy:
mode: replicated
replicas: 1
command: redis-server --save 20 1 --loglevel warning
volumes:
- ../../db_data_howmuch/redis/:/data