-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 856 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 856 Bytes
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
version: "3"
services:
app:
build:
context: .
restart: always
env_file:
- .env
volumes:
- .:/app
ports:
- ${PORT}:${PORT}
command: ./manage.py runserver 0:${PORT}
depends_on:
- postgres
- redis
celery:
build:
context: .
restart: always
env_file:
- .env
volumes:
- .:/app
command: watchmedo auto-restart
--directory=./ --pattern=*.py --recursive --ignore-patterns=./env/* --
celery worker -A capritools -B -c 2
depends_on:
- postgres
- redis
postgres:
image: postgres:12.3
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=capritools2
- POSTGRES_PASSWORD=FygY3YYt
redis:
image: redis:5.0
volumes:
- redisdata:/data
volumes:
pgdata:
redisdata: