-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# version: '3.8'
# services:
# db:
# image: postgres:15-alpine
# container_name: m_postgres
# restart: unless-stopped
# env_file:
# - backend/config/config_local.env
# environment:
# # Переопределяем, чтобы PostgreSQL читал переменные
# POSTGRES_USER: ${POSTGRES_USER:-user}
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
# POSTGRES_DB: ${POSTGRES_DB:-sopostavmenya}
# ports:
# - '${DB_PORT:-5433}:5432'
# volumes:
# - pgdata:/var/lib/postgresql/data
# volumes:
# pgdata: {}
version: '3.8'
services:
db:
image: postgres:15-alpine
container_name: m_postgres
restart: unless-stopped
env_file:
- backend/config/config_local.env
environment:
POSTGRES_USER: ${POSTGRES_USER:-user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
POSTGRES_DB: ${POSTGRES_DB:-sopostavmenya}
ports:
- '${DB_PORT:-5433}:5432'
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:7-alpine
container_name: m_redis
restart: unless-stopped
ports:
- '6379:6379'
volumes:
- redisdata:/data
volumes:
pgdata: {}
redisdata: {}