generated from mlibrary/python-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
75 lines (71 loc) · 1.61 KB
/
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
services:
app:
build:
context: .
target: development
dockerfile: Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
DEV: ${DEV:-false}
POETRY_VERSION: ${POETRY_VERSION:-1.8.3}
env_file:
- env.development
- .env
volumes:
- .:/app
tty: true
stdin_open: true
database:
image: mariadb
volumes:
- database:/var/lib/mysql
ports:
- 3306:3306
environment:
- MARIADB_ROOT_PASSWORD=password
- MARIADB_USER=user
- MARIADB_PASSWORD=test@123
- MARIADB_DATABASE=database
api:
build:
context: .
target: development
dockerfile: Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
DEV: ${DEV:-false}
POETRY_VERSION: ${POETRY_VERSION:-1.8.3}
ports:
- 8000:8000
env_file:
- env.development
- .env
volumes:
- .:/app
tty: true
stdin_open: true
command: "poetry run uvicorn aim.digifeeds.database.main:app --host 0.0.0.0 --reload"
docs:
build:
context: .
target: development
dockerfile: Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
DEV: ${DEV:-false}
POETRY_VERSION: ${POETRY_VERSION:-1.8.3}
ports:
- 8888:8888
env_file:
- env.development
- .env
volumes:
- .:/app
tty: true
stdin_open: true
command: [ "poetry", "run", "sphinx-autobuild", "--watch", "aim", "--port", "8888", "--host", "0.0.0.0", "--pre-build", "/app/prebuild.sh", "docs", "docs/_build/html" ]
volumes:
database: