Skip to content

Commit

Permalink
Fix Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
denysvitali committed Mar 21, 2018
1 parent a21e34f commit 4546205
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
POSTGRES_PASSWORD=mysecretpassword
POSTGRES_PASSWORD=mysecretpassword
ROCKET_ENV=production
ROCKET_SECRET_KEY=Z0AjMXRwPUhbXGBXQjZjbGFrRnojZzFbZkRbaFo7IkYK
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM rustlang/rust:nightly
RUN mkdir /app
COPY . /app
RUN git clone https://github.com/denysvitali/gtfs-server.git /app
WORKDIR /app
RUN cargo build ---release
RUN mv target/release/gtfs-server .
RUN cargo clean
ENV IN_DOCKER true
ENTRYPOINT [ "./target/release/gtfs-server" ]
ENTRYPOINT [ "./gtfs-server" ]
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ services:
build: .
image: dvitali/gtfs-server:latest
ports:
- "8000:8000"
- "80"
env_file: .env.production
postgis:
postgres:
image: "mdillon/postgis:latest"
env_file: .env.production

0 comments on commit 4546205

Please sign in to comment.