version: '3.4'
services:
confluence:
image: cptactionhank/atlassian-confluence:latest
container_name: confluence
ports:
- "8090:8090"
- "8091:8091"
restart: always
depends_on:
- db
volumes:
- ~/docker/confluence/logs:/opt/atlassian/confluence/logs
- ~/docker/confluence/confluence-data:/var/atlassian/confluence
links:
- db
- mysqldb
db:
image: postgres:10
container_name: confluence-db
ports:
- "5433:5432"
restart: always
environment:
- POSTGRES_PASSWORD=postgres123
volumes:
- ./confluence/pgsql-data:/var/lib/postgresql/data
mysqldb:
restart: always
container_name: mysql
command:
--lower_case_table_names=1
--character-set-server=utf8
--collation-server=utf8_unicode_ci
--explicit_defaults_for_timestamp=true
image: mysql:5.7
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: crm@8888
ports:
- 3306:3306
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/config:/etc/mysql/conf.d