Skip to content

Commit

Permalink
fix docker compose enviroment
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Kirpichnikov committed Feb 23, 2019
1 parent a454c6a commit 12ad6f4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
10 changes: 7 additions & 3 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ ENV SECRET_TOKEN=$secret_token

RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get update && apt-get install -y --no-install-recommends \
nodejs \
openjdk-8-jre-headless \
apt-utils \
xvfb \
libxi6 \
libgconf-2-4 \
netcat \
wget \
unzip
gcc \
g++ \
make \
unzip \
nodejs \
openjdk-8-jre-headless

RUN curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add \
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ VPN node configuration is located in the following [repo](https://github.com/Meh
1. Clone repo `git clone [email protected]:Mehonoshin/smartvpn-billing.git`
2. `cd smartvpn-billing`
3. `docker-compose -f docker-compose.development.yml up`
4. Copy your `SECRET_TOKEN` to `.env`
5. Go to http://lvh.me:3000
4. `cp .env.sample .env`
5. Edit your `SECRET_TOKEN` in `.env`
6. Go to http://lvh.me:3000

*How to run usual RoR command into docker*
1. `docker-compose -f docker-compose.development.yml up`
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ services:
app:
tty: true
stdin_open: true
image: xtrmdk/smartvpn-billing
build:
context: .
dockerfile: Dockerfile.dev
env_file: .env
ports:
- "3000:3000"
Expand Down

0 comments on commit 12ad6f4

Please sign in to comment.