Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
version: '3'
services:
    nginx:
        build:image: nginx:1.19.3
        restart: always
   context: .     container_name: nginx
        ports:
            dockerfile: ./DockerfileNginx- "80:80"
            - "443:443"
        container_name: nginx
volumes:
            ports:- ./nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
            - "80:80"./ssl/fullchain.pem:/etc/nginx/ssl/fullchain.pem
            - "443:443"./ssl/privkey.pem:/etc/nginx/ssl/privkey.pem
        links:
            - confluence 
    confluence:
        image: atlassian/confluence-server:7.3.1  #서버로 사용할 버전 명시 가장 최신은 latest로 하면 됩니다.
        restart: always
        container_name: confluence
        environment:
            JVM_MINIMUM_MEMORY: 2048m  #default메모리는 1g입니다. 서버환경에 따라 증감합니다.
            JVM_MAXIMUM_MEMORY: 2048m  #default메모리는 1g입니다. 서버환경에 따라 증감합니다.
            ATL_PROXY_NAME: wikicentos.iisanse.com
            ATL_PROXY_PORT: 443 
            ATL_TOMCAT_SCHEME: https
            ATL_TOMCAT_SECURE: "true"
        ports:
            - "8090:8090"    #host 포트는 80이고, container포트는 8090입니다.
            - "8091:8091"    #confluence 컨트롤 포트 입니다.
        volumes:
            - /opt/apps/atlassian/confluence-data:/var/atlassian/application-data/confluence #host dir:container dir 입니다.
        links:
            - postgresql # postgre와 연결을 설정합니다. db hosts 가 됩니다.
    postgresql:
        image: postgres:10.4
        restart: always
        container_name: postgres
        environment:
            POSTGRES_DB: confluencedb
            POSTGRES_USER: dbuser 
            POSTGRES_PASSWORD: dbpassword
            POSTGRES_INITDB_ARGS: --encoding=UTF-8
            # PGDATA: /var/lib/postgresql/data
        ports:
            - "5432:5432"  # postgre의 포트 입니다.
        volumes:
            - /opt/apps/database/postgres-data:/var/lib/postgresql/data #host dir:container dir 입니다.