-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.yml
42 lines (38 loc) · 1 KB
/
dev.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
version: '3.8'
services:
# TODO Development Reloader description
website:
ports:
- 8001:8001
command: yarn run dev
# TODO API description
api:
ports:
- 8000:80
volumes:
- ./alfred/otto:/otto/
- ./alfred/otto/fonts:/usr/share/fonts/truetype/
renderer:
build:
context: .
dockerfile: ./Dockerfile
image: alfred_worker
entrypoint: celery -A alfred.core.utils.tasks:renderer --workdir /app/alfred -b mongodb://db:27017/celery --result-backend mongodb://db:27017/celery worker --loglevel=info
networks:
- alfred_isolated
volumes:
- ./alfred/:/app/alfred/
- ./alfred/otto/fonts:/usr/share/fonts/truetype/
- ./cred.json:/cred.json
depends_on:
- 'db'
environment:
- CELERY_BROKER=mongodb://db:27017/celery
- CELERY_BACKEND=mongodb
- DB_URL=mongodb://db:27017
- DB_NAME=alfred
- GOOGLE_APPLICATION_CREDENTIALS=/cred.json
db:
ports:
- 27017:27017
user: '${UID}:${GID}'