-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (53 loc) · 1.12 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
services:
backend:
build:
context: .
dockerfile: dev.Dockerfile
image: kvdomingo/primerdriver-api:latest
init: true
command:
- |
poetry install --no-root
poetry run flask run -h 0.0.0.0 -p '5000' --reload
restart: unless-stopped
env_file: .env
volumes:
- .:/primerdriver
- venv-data:/primerdriver/.venv
ports:
- '5000:5000'
docs:
build:
context: .
dockerfile: dev.Dockerfile
image: kvdomingo/primerdriver-api:latest
init: true
restart: unless-stopped
env_file: .env
command:
- |
poetry install --no-root
poetry run mkdocs serve -a 0.0.0.0:8000
volumes:
- .:/primerdriver
- docs-venv-data:/primerdriver/.venv
ports:
- '8000:8000'
frontend:
image: oven/bun:1.1-alpine
restart: unless-stopped
init: true
environment:
NODE_ENV: development
entrypoint:
- /bin/sh
- "-c"
- "bun install && exec bun run dev"
working_dir: /web
volumes:
- ./ui:/web
ports:
- '3000:3000'
volumes:
venv-data:
docs-venv-data: