-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
33 lines (33 loc) · 967 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
30
31
32
33
version: "3.7"
services:
server:
image: docker.io/oxct:latest
build:
context: .
environment:
OXCT_REDIS_HOST: redis
OXCT_LOG_LEVEL: INFO
ports:
- 127.0.0.1:5000:5000
restart: unless-stopped
depends_on:
- redis
refresh-cache:
image: docker.io/oxct:latest
build:
context: .
command: python -c "from oxct.server.cache import recompute_expired; recompute_expired()"
environment:
OXCT_REDIS_HOST: redis
OXCT_LOG_LEVEL: INFO
restart: unless-stopped
depends_on:
- redis
redis:
image: docker.io/redis:6.2.1
volumes:
- ./oxct/server/config/redis.conf:/etc/redis/oxct.conf:ro
- ./data/redis/:/redis/data/
command: redis-server /etc/redis/oxct.conf
working_dir: /redis/data
restart: unless-stopped