2019-11-04 06:44:18 +08:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
backend:
|
|
|
|
restart: always
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
ports:
|
|
|
|
- 2017:2017
|
|
|
|
volumes:
|
|
|
|
- shared-data:/etc/v2ray
|
|
|
|
- ./service:/service
|
2019-11-14 00:55:59 +08:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
2019-11-17 07:53:46 +08:00
|
|
|
environment:
|
|
|
|
- REDIS=redis:6379
|
|
|
|
links:
|
|
|
|
- redis
|
2019-11-04 06:44:18 +08:00
|
|
|
|
|
|
|
v2ray:
|
|
|
|
restart: always
|
|
|
|
image: "v2ray/official"
|
|
|
|
pid: service:backend
|
|
|
|
environment:
|
|
|
|
- V2RAY_LOCATION_ASSET=/etc/v2ray
|
|
|
|
ports:
|
|
|
|
- 20170-20172:20170-20172
|
|
|
|
volumes:
|
|
|
|
- shared-data:/etc/v2ray
|
|
|
|
entrypoint: sh -c "cp -rfu /usr/bin/v2ray/*.dat /etc/v2ray && v2ray -config=/etc/v2ray/config.json"
|
2019-11-17 07:53:46 +08:00
|
|
|
|
|
|
|
redis:
|
|
|
|
restart: always
|
|
|
|
image: "redislabs/rejson:latest"
|
2019-11-04 06:44:18 +08:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
shared-data:
|