forked from Yuukirn/UniqueRecruitmentBackend2023-Remake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocker-compose.withdb.yml
46 lines (44 loc) · 956 Bytes
/
Docker-compose.withdb.yml
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
version: '3.8'
services:
db_postgres:
image: postgres
container_name: db_postgres
ports:
- "5432:5432"
volumes:
- "D:\\service\\db_postgres:/var/lib/postgresql/data"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=""
- POSTGRES_DB=recruitment_dev
networks:
- db
redis:
image: redis:latest
restart: always
container_name: db_redis
ports:
- "6379:6379"
volumes:
- D:\\service\\db_redis:/data
command: [ "redis-server", "--requirepass", "your_password" ]
expose:
- "6379:6379"
networks:
- db
recruitment_backend2023:
build: .
container_name: recruitment_backend_2023
ports:
- "3333:3333"
volumes:
- "./data/logs:/app/data/logs" #日志
- "./data/resumes:/app/data/resumes" #简历
networks:
- db
depends_on:
- db_postgres
networks:
db:
external: true
name: db