-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 908 Bytes
/
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
version: '3.7'
services:
runserver:
build: .
depends_on:
- postgres
volumes:
- .:/app
env_file:
- ./.env
- ./.env.dev.db
ports:
- "8000:8000"
# command: /runserver
networks:
- pages_network
postgres:
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- ./.env.dev.db
networks:
- pages_network
# ports:
# - "5432:5432"
redis:
image: redis:3.0-alpine
volumes:
- redis:/data
networks:
- pages_network
celery:
build:
context: .
dockerfile: Dockerfile.celery
command: pipenv run celery worker -l info -A config -B
volumes:
- .:/app
env_file:
- ./.env
- ./.env.dev.db
networks:
- pages_network
networks:
pages_network:
driver: bridge
volumes:
postgres_data: {}
redis: