File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,10 @@ COPY /app/ app/
5454COPY /tests/ tests/
5555COPY /templates/ templates/
5656COPY .env app/
57- COPY alembic.ini app/
58- COPY alembic/ app /alembic/
57+ COPY alembic.ini /panettone/alembic.ini
58+ COPY / alembic/ /panettone /alembic/
5959COPY logging-uvicorn.json /panettone/logging-uvicorn.json
60+ COPY logging-granian.json /panettone/logging-granian.json
6061COPY pyproject.toml /panettone/pyproject.toml
6162
6263RUN python -V
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ services:
33 container_name : fsap_app
44 network_mode : host
55 build : .
6+ environment :
7+ - PYTHONPATH=/panettone
68 env_file :
79 - .env
810 - .secrets
Original file line number Diff line number Diff line change 11services :
22 app :
33 container_name : fsap_app
4+ network_mode : host
45 build : .
6+ environment :
7+ - PYTHONPATH=/panettone
58 env_file :
69 - .env
710 - .secrets
8- command : granian --interface asgi --host 0.0.0.0 --port 8080 --loop uvloop app.main:app --access-log --log-level debug --log-config ./logging-granian.json
11+ command : bash -c "
12+ granian --interface asgi
13+ --host 0.0.0.0 --port 8080
14+ app.main:app --access-log --log-level debug
15+ --log-config ./logging-granian.json
16+ "
917 volumes:
10- - .:/home/code
18+ - ./app:/panettone/app
19+ - ./tests:/panettone/tests
20+ - ./templates:/panettone/templates
1121 ports:
1222 - " 8080:8080"
1323 depends_on :
1424 - db
15- - redis
25+ - inmemory
1626
1727 db :
1828 container_name : fsap_db
29+ network_mode : host
1930 build :
2031 context : ./db
2132 dockerfile : Dockerfile
@@ -41,6 +52,7 @@ services:
4152 inmemory :
4253 image : redis:latest
4354 container_name : fsap_inmemory
55+ network_mode : host
4456 ports :
4557 - " 6379:6379"
4658 env_file :
You can’t perform that action at this time.
0 commit comments