docker-compose.yml 1.46 KB
Newer Older
TonyFord's avatar
TonyFord committed
1
2
3
4
5
6
7
version: "3.1"

services:

  php-server:
    restart: always
    container_name: faircoin-php
TonyFord's avatar
TonyFord committed
8
9
10
    #image: php:7
    build:
      context: ./services/php-server
TonyFord's avatar
TonyFord committed
11
    command: php -S 0.0.0.0:4000 -t /var/www/html
TonyFord's avatar
TonyFord committed
12
13
    environment:
      PASSWORD: ${PASSWORD:-password}
TonyFord's avatar
TonyFord committed
14
    ports:
TonyFord's avatar
TonyFord committed
15
      - ${LH_PORT_jsonrpc:-4000}:4000
TonyFord's avatar
TonyFord committed
16
17
18
19
    volumes:
      - ./html:/var/www/html

  faircoin:
TonyFord's avatar
TonyFord committed
20
    restart: always
TonyFord's avatar
TonyFord committed
21
    build:
TonyFord's avatar
TonyFord committed
22
      context: ./services/faircoin
TonyFord's avatar
TonyFord committed
23
24
25
      args:
        RUNNER_UID: ${RUNNER_UID:-1000}
        RUNNER_GID: ${RUNNER_GID:-1000}
TonyFord's avatar
TonyFord committed
26
27
    environment:
      AUTOSTART: ${AUTOSTART:-1}
TonyFord's avatar
TonyFord committed
28
    container_name: faircoin-faircoind-electrumfair
TonyFord's avatar
TonyFord committed
29
30
    user: "${RUNNER_UID:-1000}:${RUNNER_GID:-1000}"
    volumes:
TonyFord's avatar
TonyFord committed
31
      - fairchains:/home/faircoin/.faircoin2
TonyFord's avatar
TonyFord committed
32
      - electrumfair:/home/faircoin/.electrumfair
TonyFord's avatar
TonyFord committed
33
      - ./services/electrumfairchainsx/scripts:/home/faircoin/scripts
TonyFord's avatar
TonyFord committed
34

TonyFord's avatar
TonyFord committed
35
  electrumfairchainsx:
TonyFord's avatar
TonyFord committed
36
    restart: always
TonyFord's avatar
TonyFord committed
37
    build:
TonyFord's avatar
TonyFord committed
38
      context: ./services/electrumfairchainsx
TonyFord's avatar
TonyFord committed
39
      args:
TonyFord's avatar
TonyFord committed
40
41
        RUNNER_UID: "${RUNNER_UID:-1000}"
        RUNNER_GID: "${RUNNER_GID:-1000}"
TonyFord's avatar
TonyFord committed
42
43
44
    depends_on:
      - faircoin
    container_name: faircoin-electrumfairchainsx
TonyFord's avatar
ts    
TonyFord committed
45
    command: ./efcx_server
TonyFord's avatar
TonyFord committed
46
47
48
    #ports:
    #  - 51811:51811
    #  - 51812:51812
TonyFord's avatar
TonyFord committed
49
50
    user: "${RUNNER_UID:-1000}:${RUNNER_GID:-1000}"
    volumes:
TonyFord's avatar
TonyFord committed
51
52
53
      - fairchains:/home/faircoin/.fairchains
      - ./services/electrumfairchainsx/scripts:/home/faircoin/scripts
      - ${SSL_CONF}:/home/faircoin/scripts/ssl.conf
TonyFord's avatar
TonyFord committed
54

TonyFord's avatar
TonyFord committed
55
volumes:
TonyFord's avatar
TonyFord committed
56
  fairchains:
TonyFord's avatar
TonyFord committed
57
  electrumfair: