-
Notifications
You must be signed in to change notification settings - Fork 65
/
docker-compose.debug.yml
45 lines (44 loc) · 1.08 KB
/
docker-compose.debug.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
version: '3'
networks:
hitokoto_api:
driver: bridge
services:
hitokoto_api:
networks:
- hitokoto_api
image: hitokoto/api:latest
container_name: hitokoto_api
hostname: hitokoto_api
build: docker/mainline/Dockerfile
environment:
NODE_ENV: development
# 服务配置
url: https://v1.hitokoto.cn
api_name: sh-01-X23Hwoc
requests.hosts: "['v1.hitokoto.cn']"
redis.host: redis
redis.port: 6379
# redis.password:
# redis.database: 0
ports:
- 8000:8000
- 9229:9229
command: node --inspect=0.0.0.0:9229 core --harmony
links:
- redis
restart: no
volumes:
- ./etc/api:/usr/src/app/data
redis:
networks:
- hitokoto_api
image: redis
restart: unless-stopped
container_name: redis
hostname: redis
volumes:
- ./etc/redis.conf:/etc/redis/redis.conf # 一定要记得把 redis.conf 先放在这个位置哦
- ./data/redis:/data
command: redis-server /etc/redis/redis.conf
# ports:
# - 6379:6379 # 如果有必要请取消注释本行