-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-development.yml
More file actions
49 lines (48 loc) · 1 KB
/
Copy pathdocker-compose-development.yml
File metadata and controls
49 lines (48 loc) · 1 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
version: "3"
services:
database:
image: postgres
ports:
- "5432"
environment:
- POSTGRES_DB=movies
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
env_file:
- ghiblimovies.env
redis:
container_name: redis-ghiblimovies
image: redis:alpine
celery:
build: .
command: celery -A ghiblimovies worker -l info
env_file:
- ghiblimovies.env
depends_on:
- redis
volumes:
- .:/ghiblimovies/
celery-beat:
build: .
command: celery -A ghiblimovies beat -l info
env_file:
- ghiblimovies.env
depends_on:
- redis
volumes:
- .:/ghiblimovies/
django:
build: .
ports:
- "8000:8000"
depends_on:
- database
- redis
env_file:
- ghiblimovies.env
volumes:
- .:/ghiblimovies/
command: >
bash -c "python manage.py makemigrations && python manage.py migrate
&& python manage.py runserver 0.0.0.0:8000
&& celery -A ghiblimovies worker -l INFO"