-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (84 loc) · 1.53 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
services:
library:
restart: always
build:
context: .
dockerfile: ./docker/django/Dockerfile
volumes:
- .:/app
- ./static:/home/app/static/
- ./media:/home/app/media/
image: config
command: /start
expose:
- 8000
env_file:
- .env
environment:
- DOCKER_DEBUG=0
depends_on:
- redis
- db
nginx:
restart: always
image: nginx:latest
volumes:
- ./static:/var/www/EasyLibrary/static/
- ./media:/var/www/EasyLibrary/media/
- ./docker/nginx:/etc/nginx/conf.d
expose:
- 8080
ports:
- "80:8080"
depends_on:
- library
db:
restart: always
image: postgres:16.3-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
hostname: db
env_file:
- .env
redis:
image: redis:7.2.5-alpine
expose:
- 6379
celery_worker:
restart: always
build:
context: .
dockerfile: ./docker/django/Dockerfile
image: config
command: /start-celeryworker
volumes:
- .:/app
env_file:
- .env
environment:
- DOCKER_DEBUG=0
depends_on:
- redis
- db
- library
celery_beat:
restart: always
build:
context: .
dockerfile: ./docker/django/Dockerfile
image: config
command: /start-celerybeat
volumes:
- .:/app
env_file:
- .env
environment:
- DOCKER_DEBUG=0
depends_on:
- redis
- db
- library
volumes:
postgres_data:
static:
media: