Skip to content

Commit

Permalink
FIx and cleanup docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosenpfand committed Aug 2, 2023
1 parent 0fe16c1 commit 6715ba7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ RUN set -eux; \
COPY docker/crontab ${CRONTAB_FILE}
COPY docker/create_env.sh /root/create_env.sh

# App
ENV MODULE_NAME=wsgi
RUN rm -rf /app
COPY ./ /app
7 changes: 3 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ version: '3'
services:
app:
build: ./
restart: always
restart: unless-stopped
ports:
- 5000:80
environment:
- MODULE_NAME=wsgi
- FLASK_SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://zug:zug@postgres:5432/zug
depends_on:
postgres:
Expand All @@ -21,7 +20,7 @@ services:

cron:
build: ./
restart: always
restart: unless-stopped
environment:
- FLASK_SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://zug:zug@postgres:5432/zug
depends_on:
Expand All @@ -31,7 +30,7 @@ services:

postgres:
image: postgres:alpine
restart: always
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=zug
- POSTGRES_DB=zug
Expand Down
File renamed without changes.

0 comments on commit 6715ba7

Please sign in to comment.