forked from determ1ne/grsical
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
29 lines (28 loc) · 986 Bytes
/
docker-compose.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
# you need put this file in your drone exec machine, and edit .drone.yml which command is `cd /app/zjuicalsrv`,
# so you need `mkdir /app/zjuicalsrv` in this machine, and put this file in this directory.
# don't forget to `mkdir configs` in this dir, and put your server.json and config.json in here, which will bind mount to docker container.
version: '3'
services:
app:
image: zjuicalsrv:latest
restart: always
#environment:
ports:
- "5678:5678"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./configs/server.json:/app/configs/server.json
- ./configs/config.json:/app/configs/config.json
depends_on:
- "redis"
redis:
image: redis:6.2.6
restart: always
ports:
- "6379:6379"
volumes:
- ./configs/redis.conf:/etc/redis/redis.conf
- ./data/data:/data # need create data dir
- ./data/logs:/logs # need create data dir
command: redis-server /etc/redis/redis.conf