mirror of
https://github.com/hknsh/project-knedita.git
synced 2024-11-28 17:41:15 +00:00
27 lines
No EOL
520 B
YAML
27 lines
No EOL
520 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:alpine
|
|
restart: unless-stopped
|
|
container_name: postgres
|
|
ports:
|
|
- 5432:5432
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
restart: unless-stopped
|
|
container_name: redis
|
|
ports:
|
|
- 6379:6379
|
|
command: redis-server --save 20 1 --loglevel warning --requirepass not_a_production_pass
|
|
volumes:
|
|
- redis:/data
|
|
|
|
volumes:
|
|
postgres:
|
|
name: backend-db |