-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (33 loc) · 832 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (33 loc) · 832 Bytes
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
version: '3.8'
services:
db:
image: postgres:latest
container_name: postgres-db
environment:
POSTGRES_DB: ${POSTGRES_DB:-social}
POSTGRES_USER: ${POSTGRES_USER:-admin}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-adminpassword}
volumes:
- db-data:/var/lib/postgresql
ports:
- "5432:5432"
redis:
image: redis:6.2-alpine
# restart: unless-stopped
container_name: redis-social
ports:
- "6379:6379"
command: redis-server --save 60 1 --loglevel warning
redis-commander:
container_name: redis-commander
hostname: redis-commander
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOST=redis
ports:
- "127.0.0.1:8082:8081"
depends_on:
- redis
# restart: unless-stopped
volumes:
db-data: