forked from style77/newsltr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
103 lines (97 loc) · 2.42 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
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3.3'
services:
newsltr-redis:
image: redis:latest
container_name: newsltr-redis
ports:
- "6379:6379"
newsltr-db:
image: postgres:latest
container_name: newsltr-db
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: newsltr
newsltr-api:
build:
dockerfile: Dockerfile
restart: always
command: python manage.py runserver 0.0.0.0:8000
image: newsltr-api:latest
container_name: newsltr-api
ports:
- "127.0.0.1:8000:8000"
env_file:
- newsltr/.env
depends_on:
- newsltr-db
- newsltr-redis
volumes:
- .:/app
newsltr-migrations:
build:
dockerfile: Dockerfile
image: newsltr-migrations:latest
container_name: newsltr-migrations
restart: no
command: python manage.py migrate
env_file:
- newsltr/.env
volumes:
- .:/app
depends_on:
- newsltr-db
- newsltr-api
- newsltr-redis
# newsltr-celery:
# build:
# dockerfile: Dockerfile
# image: newsltr-celery:latest
# container_name: newsltr-celery
# command: celery -A newsltr worker -Q default -n newsltr.%%h --loglevel=INFO --max-memory-per-child=512000 --concurrency=1
# volumes:
# - .:/app
# depends_on:
# - newsltr-api
# - newsltr-db
# - newsltr-redis
# links:
# - newsltr-api
# - newsltr-db
# - newsltr-redis
# newsltr-celery-beat:
# build:
# dockerfile: Dockerfile
# image: newsltr-celery-beat:latest
# container_name: newsltr-celery-beat
# command: celery -A newsltr beat -S redbeat.RedBeatScheduler --loglevel=DEBUG --pidfile /tmp/newsltr-celerybeat.pid
# volumes:
# - .:/app
# depends_on:
# - newsltr-api
# - newsltr-db
# - newsltr-redis
# links:
# - newsltr-api
# - newsltr-db
# - newsltr-redis
# newsltr-celery-flower:
# build:
# dockerfile: Dockerfile
# container_name: newsltr-celery-flower
# command: celery -A newsltr flower --loglevel=INFO --port=9090 --broker=redis://newsltr-redis:6379/0 --basic_auth=newsltr:newsltr
# ports:
# - "127.0.0.1:9090:9090"
# restart: unless-stopped
# volumes:
# - .:/app
# depends_on:
# - newsltr-api
# - newsltr-db
# - newsltr-redis
# links:
# - newsltr-api
# - newsltr-db
# - newsltr-redis