-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
56 lines (52 loc) · 1.03 KB
/
docker-compose.yaml
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
51
52
53
54
55
56
version: '3.8'
services:
# api:
# container_name: dolphin-admin-nest
# build:
# context: .
# dockerfile: Dockerfile
# ports:
# - 3000:3000
# env_file:
# - .env
# depends_on:
# - postgres
# - mongodb
# - redis
# command: bash -c "npm run prisma:migrate:dev"
postgres:
container_name: dolphin-admin-postgres
image: postgres:16
volumes:
- postgres_data:/var/lib/postgresql/data
restart: always
ports:
- 5432:5432
env_file:
- .env
mongodb:
container_name: dolphin-admin-mongo
image: mongo
command: [ "mongod", "--auth" ]
volumes:
- mongo_data:/data/db
restart: always
ports:
- 27017:27017
env_file:
- .env
redis:
container_name: dolphin-admin-redis
image: redis
command: [ "--requirepass", "${REDIS_PASSWORD}" ]
volumes:
- redis_data:/data
restart: always
ports:
- 6379:6379
env_file:
- .env
volumes:
postgres_data:
mongo_data:
redis_data: