-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pool and frontend can be built and run as docker containers. An example docker-compose.yml is included.
- Loading branch information
Showing
4 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM golang:1.11 | ||
|
||
RUN mkdir -p /app | ||
WORKDIR /app | ||
|
||
COPY ./ /app | ||
|
||
RUN make | ||
|
||
CMD ./build/bin/open-ethereum-pool ./config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
version: '2' | ||
services: | ||
proxy: | ||
build: pool/open-ethereum-pool/ | ||
restart: always | ||
ports: | ||
- 3333:3333 | ||
volumes: | ||
- ./proxy.json:/app/config.json | ||
links: | ||
- redis | ||
|
||
api: | ||
build: ./ | ||
restart: always | ||
ports: | ||
- 8181:8181 | ||
volumes: | ||
- ./api.json:/app/config.json | ||
|
||
unlocker: | ||
build: pool/open-ethereum-pool/ | ||
restart: always | ||
volumes: | ||
- ./unlocker.json:/app/config.json | ||
|
||
payouts: | ||
build: pool/open-ethereum-pool/ | ||
restart: always | ||
volumes: | ||
- ./payouts.json:/app/config.json | ||
|
||
web-builder: | ||
build: www/ | ||
volumes: | ||
- ./www-dist:/app/dist | ||
|
||
web-development: | ||
build: www/ | ||
volumes: | ||
- ./www:/app | ||
command: ember server --port 8082 --environment development | ||
|
||
redis: | ||
image: redis:latest | ||
restart: always | ||
ports: | ||
- 6379:6379 | ||
volumes: | ||
- redis:/data | ||
command: redis-server --appendonly yes | ||
|
||
volumes: | ||
redis: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:11.1.0-alpine | ||
|
||
RUN apk add git | ||
|
||
RUN mkdir -p /app | ||
WORKDIR /app | ||
|
||
COPY ./ /app | ||
|
||
VOLUME /app/www/dist | ||
|
||
RUN npm install -g ember-cli@2.9.1 | ||
RUN npm install -g bower | ||
RUN npm install | ||
RUN bower --allow-root install | ||
|
||
CMD ./build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
./node_modules/.bin/ember build --environment production |