README.md 1.06 KB
Newer Older
1
# FairCoin.Co mainpage
2

3
Mainpage and API.
4

5
The service is made for/controlled by gitlab runner.
6

TonyFord's avatar
TonyFord committed
7
## Usage <small>( by gitlab runner automation )</small>
8

9
Go into gitlab **CI/CD** -> **Pipeline** and **Run Pipeline**
10

11
Enter variable name **CMD**
12

13
#### CMD - commands
14

15
16
17
18
19
20
~~~
build        # build container ( changes of Dockerfile )
start        # start container ( changes of scripts )
stop         # stop container
uninstall    # remove container
~~~
21

22
#### CI/CD Settings
23

24
Go Gitlab **Settings** -> **CI/CD** -> **Variables**
25

26
27
28
~~~
#### FairCoin.Co group variables ######################
ELECTRUMFAIR_CONF        # electrumfair config
TonyFord's avatar
TonyFord committed
29
30
31
32
33
34
35
36
LH_PORT                  # php -S 0.0.0.0:${LH_PORT}
~~~


## Development <small>( manual usage )</small>

If you want create an instance manual then follow the  instructions.

37
38
39
40
1. install docker and docker-compose ( https://docs.docker.com/compose/install/ )
+ clone this project
+ change configuration in ./env
+ run services by ./control.sh
TonyFord's avatar
TonyFord committed
41
42
43
44
45
46
47

~~~
chmod +x ./control.sh
./control.sh build
./control.sh start
./control.sh stop
./control.sh uninstall
48
~~~