-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (55 loc) · 1.1 KB
/
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
57
58
59
60
61
version: '3.8'
services:
redis:
image: redis:6.2.3-alpine
networks:
- rss-reader-network
postgres:
image: postgres:11.5
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
ports:
- 5432:5432
volumes:
- ./docker/develop/postgres/data:/var/lib/postgresql
- ./docker/develop/postgres/init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
networks:
- rss-reader-network
web:
build:
context: .
dockerfile: Dockerfile
args:
POETRY_INSTALL_OPTIONS: ""
env_file:
- ./docker/develop/.env
ports:
- 8000:8000
depends_on:
- redis
- postgres
volumes:
- .:/django
entrypoint:
- /entrypoint.sh
networks:
- rss-reader-network
celery_beat:
build: .
restart: always
volumes:
- .:/django
env_file:
- ./docker/develop/.env
depends_on:
- postgres
- redis
- web
entrypoint:
- /scheduler-entrypoint.sh
networks:
- rss-reader-network
networks:
rss-reader-network:
name: rss-reader-network