2021-08-05 17:07:15 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
2022-05-14 10:22:06 +00:00
|
|
|
postgres:
|
2023-04-29 05:36:39 +00:00
|
|
|
image: postgres:14-alpine
|
2021-08-05 17:07:15 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2022-05-14 10:22:06 +00:00
|
|
|
- pg-data:/var/lib/postgresql/data
|
|
|
|
env_file: ./.env
|
2021-08-05 17:07:15 +00:00
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
2022-05-14 10:22:06 +00:00
|
|
|
tty: true
|
|
|
|
|
|
|
|
redis:
|
2023-04-29 05:36:39 +00:00
|
|
|
image: redis:7-alpine
|
2022-05-14 10:22:06 +00:00
|
|
|
command: >
|
|
|
|
--maxmemory-policy noeviction
|
|
|
|
restart: unless-stopped
|
2021-09-25 10:56:54 +00:00
|
|
|
volumes:
|
2022-05-14 10:22:06 +00:00
|
|
|
- redis-data:/data
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|
|
|
|
tty: true
|
|
|
|
|
2021-08-05 17:07:15 +00:00
|
|
|
volumes:
|
2022-05-14 10:22:06 +00:00
|
|
|
pg-data:
|
|
|
|
redis-data:
|