-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
46 lines (41 loc) · 1001 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
34
35
36
37
38
39
40
41
42
43
44
45
version: '3.6'
services:
nginx-proxy:
restart: always
image: nginx:latest
container_name: kathe_nginx
# clashes with ports since https://github.com/docker/docker-py/pull/2511#
# ports:
# - 80:80
# - 443:443
volumes:
- ./conf/nginx.conf:/etc/nginx/nginx.conf
- ./conf/cert/:/etc/nginx/conf.d/
network_mode: host
command: [nginx-debug, '-g', 'daemon off;']
depends_on:
- kathe
kathe:
restart: always
container_name: kathe_app
image: kathe:latest
depends_on:
- redis
environment:
- REDIS_HOST=127.0.0.1
- LANG=C.UTF-8
- LC_ALL=C.UTF-8
# ports:
# - 5000:5000
expose:
- 8000
network_mode: host
redis:
restart: always
container_name: kathe_redis
image: redis:latest
command: redis-server /etc/redis.conf
volumes:
- /var/lib/docker/volumes/kathe_redis-data/_data/:/data
- ./conf/redis.conf:/etc/redis.conf
network_mode: host