-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (69 loc) · 1.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (69 loc) · 1.61 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
73
74
x-app: &app
build: .
restart: always
volumes:
- .:/code
links:
- db
- redis
depends_on:
- db
- redis
services:
redis:
image: redis
# ports:
# - "6379:6379"
db:
image: postgres
environment:
- POSTGRES_USER=speedpycom
- POSTGRES_PASSWORD=speedpycom
- POSTGRES_DB=speedpycom
# ports:
# - "5432:5432"
web:
<<: *app
image: speedpy-web-image-suffix
command: bash dev.sh
ports:
- "127.0.0.1:9000:9000"
media:
image: nginx
volumes:
- ./media:/usr/share/nginx/html
ports:
- "127.0.0.1:9001:80"
# tailwind:
# image: node:20.11-bullseye
# volumes:
# - .:/code
# environment:
# - NODE_ENV=development
# command: /bin/bash -c 'cd /code/ && npm install && npm run tailwind:watch'
celery:
<<: *app
image: speedpy-celery-image-suffix
command: celery -A project.celeryapp:app worker -Q default -n speedpycom.%%h --loglevel=DEBUG --max-memory-per-child=512000 --concurrency=1
celery-beat:
<<: *app
image: speedpy-celery-beat-image-suffix
command: celery -A project.celeryapp:app beat -S redbeat.RedBeatScheduler --loglevel=DEBUG --pidfile /tmp/celerybeat.pid
# celery-flower:
# build: .
# restart: always
# command: celery -A project.celeryapp:app flower --loglevel=DEBUG --port=9090 --basic_auth=speedpycom:testpassword
# ports:
# - "127.0.0.1:9090:9090"
# env_file:
# - .env
# volumes:
# - .:/code
# links:
# - db
# - redis
## - rabbitmq
# depends_on:
# - db
# - redis
## - rabbitmq