-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose-dev.yml
39 lines (39 loc) · 962 Bytes
/
docker-compose-dev.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
version: "3.9"
services:
db:
image: postgres
ports:
- "${DATABASES_DEFAULT_PORT}:${DATABASES_DEFAULT_PORT}"
environment:
- POSTGRES_DB=${DATABASES_DEFAULT_NAME}
- POSTGRES_USER=${DATABASES_DEFAULT_USER}
- POSTGRES_PASSWORD=${DATABASES_DEFAULT_PASSWORD}
redis:
image: redis:latest
hostname: redis
rabbit:
hostname: rabbit
image: rabbitmq:latest
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=mypass
web:
build: .
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py createsu && gunicorn finance.wsgi:application -b 0.0.0.0:8000 --log-file -"
volumes:
- .:/code
env_file: .env
ports:
- "8000:8000"
depends_on:
- db
- redis
- rabbit
worker:
build: .
command: celery --app=finance worker -B
depends_on:
- db
- redis
- rabbit
- web