-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-tests.yml
46 lines (46 loc) · 1.15 KB
/
docker-compose-tests.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
services:
fastapi:
build:
context: .
dockerfile: Dockerfile-testing
environment:
- BWS_ACCESS_TOKEN={$BWS_ACCESS_TOKEN}
ports:
- 8000:8000
volumes:
- ./config/options.yml:/app/config/options.yml
- $HOME/.aws:/root/.aws
develop:
watch:
# sync static content
- path: ./static
action: sync
target: /app/static
# sync templates
- path: ./templates
action: sync
target: /app/templates
- path: ./forms
action: sync
target: /app/templates
# sync app
- path: ./models/
action: sync+restart
target: /app/models/
- path: ./routes/
action: sync+restart
target: /app/routes/
- path: ./tests/
action: rebuild
target: /app/tests/
- path: ./util/
action: sync+restart
target: /app/util/
- path: ./index.py
action: sync+restart
target: /app/index.py
- path: ./requirements.txt
action: rebuild
target: /app/requirements.txt
redis:
image: redis:7.2