2020-03-10
Open
#50 docker-compose 로 yona 1.14 한방에 올리기 star
2020-03-10 Open
Tasks

docker-compose#

# cat docker-compose.yml

version: '3.1'
services:
  yona-mariadb:
    image: witbox/mariadb:10.3-focal
    container_name : yona_mariadb
    networks:
    - yona
    environment:
      MYSQL_DATABASE: yona
      MYSQL_USER: yona
      MYSQL_PASSWORD: jonathan
      MYSQL_ROOT_PASSWORD: jonathan
    volumes:
    - ./mysql:/var/lib/mysql

  yona:
    image: witbox/yona:1.14.0
    restart: always
    container_name : yona
    ports:
    - "9000:9000"
    networks:
    - yona
    depends_on:
    - yona_mariadb
    environment:
      YONA_DATA : /yona/data
    volumes     :
    - ./data:/yona/data

  adminer:
    image: adminer
    container_name: yona_adminer
    restart: always
    networks:
    - yona
    ports:
    - 9001:8080
networks :
  yona :

docker-compose up#

# docker-compose up

에러 확인 후 ctrl + c 로 docker 종료

application.conf 수정#

DB 연결 및 설정 변경

docker-compose up#

# docker-compose up -d

yona start#

http://server-ip:9000/

Issue Sharer
Comment 0

Add a comment
New subtask
Assignee
No assignee
Milestone
No milestone
Due date
No due date
Comment 0