-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.db.yaml
More file actions
41 lines (40 loc) · 908 Bytes
/
Copy pathdocker-compose.db.yaml
File metadata and controls
41 lines (40 loc) · 908 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
38
39
40
41
services:
db:
image: postgres:17
container_name: postgres
restart: always
ports:
- 5432:5432
environment:
POSTGRES_DB: injunghaseyo
POSTGRES_USER: injung
POSTGRES_PASSWORD: tlaznd@0801
volumes:
- ./docker/postgres/data:/var/lib/postgresql/data
redis:
image: redis:7.0
container_name: redis
restart: always
ports:
- 6379:6379
labels:
- "name=redis"
- "mode=standalone"
command: redis-server --appendonly yes --requirepass tlaznd@0801 --port 6379
volumes:
- ./docker/redis/data:/data
mongo:
image: mongo:4.2
container_name: mongo
restart: always
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: tlaznd@0801
volumes:
- ./docker/mongo/db:/data/db
networks:
backend:
name: backend
driver: bridge