forked from ivoire/KissCache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
72 lines (66 loc) · 1.49 KB
/
docker-compose.yaml
File metadata and controls
72 lines (66 loc) · 1.49 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.4"
services:
db:
image: ${KC_POSTGRES_IMAGE}
# Override some postgresql parameters on large servers
# command: "postgres -c shared_buffers=1GB -c max_connections=200"
environment:
POSTGRES_USER: kiss-cache
POSTGRES_PASSWORD: kiss-cache-passwd
volumes:
- db:/var/lib/postgresql/data
restart: unless-stopped
celery-beat:
image: ${KC_IMAGE}
user: kiss-cache
depends_on:
- redis
environment:
SERVICE: celery-beat
volumes:
- ./share/kiss-cache.yaml:/etc/kiss-cache.yaml
restart: unless-stopped
celery-worker:
image: ${KC_IMAGE}
user: kiss-cache
environment:
SERVICE: celery-worker
volumes:
- cache:/var/cache/kiss-cache/
- ./share/kiss-cache.yaml:/etc/kiss-cache.yaml
depends_on:
- db
- redis
restart: unless-stopped
redis:
image: ${KC_REDIS_IMAGE}
restart: unless-stopped
nginx:
image: ${KC_IMAGE}
volumes:
- cache:/var/cache/kiss-cache/
- ./share/nginx.conf:/etc/nginx/kiss-cache.conf:ro
depends_on:
- web
environment:
SERVICE: nginx
ports:
- "${KC_FRONT_PORT}:80"
restart: unless-stopped
web:
image: ${KC_IMAGE}
scale: ${KC_WEB_SCALE}
volumes:
- cache:/var/cache/kiss-cache/
- ./share/kiss-cache.yaml:/etc/kiss-cache.yaml
depends_on:
- db
- redis
environment:
SERVICE: gunicorn
restart: unless-stopped
volumes:
db:
name: kiss-cache-db
cache:
name: kiss-cache-cache