-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
55 lines (53 loc) · 1.11 KB
/
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
46
47
48
49
50
51
52
53
54
55
version: '3.8'
services:
server:
restart: always
image: asennyey/tutor-center
build:
context: ./server
dockerfile: Dockerfile
command: gunicorn tutor_center.wsgi --bind 0.0.0.0:8000 --worker-tmp-dir /dev/shm --workers=2 --threads=4
volumes:
- static_volume:/home/app/web/staticfiles
- ./server/logs:/var/log
expose:
- 8000
depends_on:
- redis
proxy:
restart: always
image: asennyey/proxy
build: ./proxy
volumes:
- ./proxy/logs:/var/log/nginx
- static_volume:/home/app/web/staticfiles
ports:
- 3000:80
depends_on:
- server
- front-end
front-end:
restart: always
image: asennyey/front-end
build: ./front-end
expose:
- 80
log-rotate:
restart: always
image: blacklabelops/logrotate
volumes:
- ./nginx/logs:/var/log/nginx
environment:
- LOGS_DIRECTORIES=/var/log/nginx
depends_on:
- proxy
redis:
restart: always
image: redis:6.2-alpine3.15
volumes:
- redis_storage:/data
expose:
- 6379
volumes:
static_volume:
redis_storage: