-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (39 loc) · 1.03 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
version: "3.8"
services:
flask-server:
build:
context: .
dockerfile: Dockerfile.flask
env_file: .env
depends_on:
- postgres
entrypoint: /notion_plugin/entrypoint.sh
ports:
- '5000:5000'
redis:
image: redis
container_name: redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
env_file: .env
ports:
- '6379:6379'
celery-tasks:
build:
context: .
dockerfile: Dockerfile.celery
env_file: .env
depends_on:
- redis
postgres:
container_name: postgres_container
image: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=12345
- POSTGRES_DB=notion_plugin
- POSTGRES_HOST=host.docker.internal
#volumes:
#- '/home/valera/PycharmProjects/notion_plugin/:/notion_plugin'
ports:
- "5432:5432"