CentOS8.3にオープンソースのERPソフトflectraをインストールする方法

2021年3月28日

操作方法
OSの確認
# cat /etc/redhat-release
CentOS Linux release 8.3.2011
# docker –version
Docker version 20.10.5, build 55c4c88
# docker-compose –version
docker-compose version 1.28.6, build 5db8d86f

1.docker-compose.yml作成
# vi docker-compose.yml

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
version: "3.1"
services:
db:
image: postgres:9.4
restart: always
ports:
- 5444:5432
environment:
POSTGRES_USER: flectra
POSTGRES_PASSWORD: flectra
volumes:
- pg-flectra:/var/lib/postgresql/data
flectra:
image: flectrahq/flectra
restart: always
ports:
- 7073:7073
environment:
- HOST=db
- PORT=5432
- USER=flectra
- PASSWORD=flectra
depends_on:
- db
volumes:
pg-flectra:
version: "3.1" services: db: image: postgres:9.4 restart: always ports: - 5444:5432 environment: POSTGRES_USER: flectra POSTGRES_PASSWORD: flectra volumes: - pg-flectra:/var/lib/postgresql/data flectra: image: flectrahq/flectra restart: always ports: - 7073:7073 environment: - HOST=db - PORT=5432 - USER=flectra - PASSWORD=flectra depends_on: - db volumes: pg-flectra:
version: "3.1"
 
services:
  db:
    image: postgres:9.4
    restart: always
    ports:
      - 5444:5432
    environment:
      POSTGRES_USER: flectra
      POSTGRES_PASSWORD: flectra
    volumes:
      - pg-flectra:/var/lib/postgresql/data
 
  flectra:
    image: flectrahq/flectra
    restart: always
    ports:
      - 7073:7073
    environment:
      - HOST=db
      - PORT=5432
      - USER=flectra
      - PASSWORD=flectra
    depends_on:
      - db
 
volumes:
  pg-flectra:

2.実行
# docker-compose up -d

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Creating network "flectra_default" with the default driver
Creating volume "flectra_pg-flectra" with default driver
Pulling db (postgres:9.4)...
9.4: Pulling from library/postgres
Status: Downloaded newer image for flectrahq/flectra:latest
Creating flectra_db_1 ... done
Creating flectra_flectra_1 ... done
Creating network "flectra_default" with the default driver Creating volume "flectra_pg-flectra" with default driver Pulling db (postgres:9.4)... 9.4: Pulling from library/postgres 略 Status: Downloaded newer image for flectrahq/flectra:latest Creating flectra_db_1 ... done Creating flectra_flectra_1 ... done
Creating network "flectra_default" with the default driver
Creating volume "flectra_pg-flectra" with default driver
Pulling db (postgres:9.4)...
9.4: Pulling from library/postgres
略
Status: Downloaded newer image for flectrahq/flectra:latest
Creating flectra_db_1 ... done
Creating flectra_flectra_1 ... done

3.ブラウザ確認
http://192.168.xx.xx:7073/web/login
Email:admin
Password:admin

Docker

Posted by arkgame