Skip to content

Commit

Permalink
Fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
haneslinger committed Oct 25, 2023
1 parent a819b1c commit e4fa2ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion buildingmotif/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WORKDIR /opt/

# Install dpeendencies
RUN pip install poetry==1.4.0 && poetry config virtualenvs.create false
RUN ls /opt && poetry install --no-dev
RUN ls /opt && poetry install
RUN chmod +x /opt/start.sh

CMD /opt/start.sh
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ services:
db:
container_name: buildingmotif-db
image: postgres
volumes:
- buildingmotif-db:/var/lib/postgresql/data
environment:
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
- "POSTGRES_USER=${POSTGRES_USER}"
Expand Down Expand Up @@ -30,6 +32,11 @@ services:
context: .
dockerfile: buildingmotif/api/Dockerfile
image: buildingmotif-api:latest
# UNCOMMENT this if you want to preserve local builds for debugging
# volumes:
# - type: bind
# source: ./buildingmotif
# target: /opt/buildingmotif
ports:
- target: 5000
published: 5000
Expand All @@ -52,3 +59,7 @@ services:
published: 4200
protocol: tcp
mode: host

volumes:
buildingmotif-db:
external: true

0 comments on commit e4fa2ed

Please sign in to comment.