Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
99 lines (94 loc) · 2.24 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
99 lines (94 loc) · 2.24 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3.4'
services:
db:
networks:
- db
- default
backend:
image: ${IMAGE_BASE}/backend-dev:dev
build:
context: .
target: backend-builder
dockerfile: Dockerfile
read_only: false
environment:
SANIC_AUTHORITY: "localhost:23230"
SANIC_DB_HOST: db
SANIC_DB_USER: sanic
SANIC_DB_PASSWORD: toomanysecrets
SANIC_DB_NAME: sanic
POETRY_VIRTUALENVS_IN_PROJECT: "false"
POETRY_VIRTUALENVS_PATH: /venv
PYTHONUNBUFFERED: 1
PYTHONASYNCIODEBUG: 1
volumes:
- .:/app
- backend_venv:/venv
- poetry_backend_cache:/root/.cache
networks:
- db
- web
- redis
- default
command:
"sh -c 'poetry install && poetry run sanic unchanging_ink.server:app --host=0.0.0.0 --port=8000 --workers=1 --dev --debug'"
worker:
image: ${IMAGE_BASE}/worker-dev:dev
build:
context: .
target: worker-builder
dockerfile: Dockerfile
read_only: false
environment:
SANIC_AUTHORITY: "localhost:23230"
SANIC_DB_HOST: db
SANIC_DB_USER: sanic
SANIC_DB_PASSWORD: toomanysecrets
SANIC_DB_NAME: sanic
POETRY_VIRTUALENVS_IN_PROJECT: "false"
POETRY_VIRTUALENVS_PATH: /venv
PYTHONUNBUFFERED: 1
PYTHONASYNCIODEBUG: 1
volumes:
- .:/app
- worker_venv:/venv
- poetry_worker_cache:/root/.cache
networks:
- db
- redis
- default
command:
"sh -c 'poetry install -E worker && poetry run python -m unchanging_ink.worker'"
frontend:
image: ${IMAGE_BASE}/frontend-dev:dev
build:
context: .
target: frontend-base
dockerfile: Dockerfile.dev
read_only: false
volumes:
- ./web/unchanging-ink:/app
- ./doc:/app/content/doc
environment:
DISABLE_OPENCOLLECTIVE: true
AUTHORITY: "localhost:23230"
networks:
- web
- redis
- default
command: "sh -c 'cd /app && npm install && npm run dev'"
tmpfs:
- /root/.npm
- /app/.nuxt
- /app/node_modules:exec
volumes:
backend_venv:
driver_opts:
type: tmpfs
device: tmpfs
worker_venv:
driver_opts:
type: tmpfs
device: tmpfs
poetry_backend_cache:
poetry_worker_cache: