-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
82 lines (76 loc) · 1.7 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3'
services:
web:
build:
context: ./app
dockerfile: Dockerfile.dev
ports:
- 8000:8000
command: uvicorn app.main:app --host 0.0.0.0 --reload
working_dir:
/app
volumes:
- ./app:/app # for development mode
environment:
- BROKER_URL=redis://redis:6379/0
- RESULT_BACKEND=redis://redis:6379/0 # ref: `POSTGRES_DB`
depends_on:
- worker
- db
db:
image: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
POSTGRES_DB: db # Created database
networks:
default:
aliases:
- postgresserver
worker:
build:
context: ./app
dockerfile: Dockerfile.dev
command: celery --app app.tasks:app worker --loglevel=info --logfile=logs/celery.log
working_dir:
/app
volumes:
- ./app:/app # for development mode
environment:
- BROKER_URL=redis://redis:6379/0
- RESULT_BACKEND=redis://redis:6379/0
depends_on:
- redis
redis:
image: redis
ports:
- 6379:6379
flower:
image: mher/flower
ports:
- 5566:5555
environment:
- BROKER_URL=redis://redis:6379/0
- RESULT_BACKEND=redis://redis:6379/0
command: celery flower
depends_on:
- redis
adminer:
image: adminer
restart: always
ports:
- 8080:8080
# my-website:
# build:
# context: ./my-website
# dockerfile: Dockerfile.dev
# ports:
# - 3000:3000
# working_dir:
# /app
# command: npm run start -- --host 0.0.0.0
# volumes:
# - ./my-website:/app
# - /app/node_modules # exclude folder
# - /app/.docusaurus # exclude folder