Контейнеры mysql и owncloud успешно запускаются
# docker-compose ps
Name Command State Ports
--------------------------------------------------------------------------------
neu_db_1 docker-entrypoint.sh mysqld Up 3306/tcp, 33060/tcp
neu_owncloud_1 /usr/bin/entrypoint /usr/b ... Up 0.0.0.0:8080->8080/tcp
[/ode]
Но снаружи главная страница недоступна по http://ip-address:8080
Файл .env
OWNCLOUD_VERSION=10.0
OWNCLOUD_DOMAIN=localhost
ADMIN_USERNAME=admin
ADMIN_PASSWORD=pwd
HTTP_PORT=8080
HTTPS_PORT=80443
Файл docker-compose.yml
version: '2.0'
volumes:
files:
driver: local
mysql:
driver: local
backup:
driver: local
services:
owncloud:
image: owncloud/server:${OWNCLOUD_VERSION}
restart: always
ports:
- ${HTTP_PORT}:8080
depends_on:
- db
environment:
- OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN}
- OWNCLOUD_DB_TYPE=mysql
- OWNCLOUD_DB_NAME=owncloud
- OWNCLOUD_DB_USERNAME=owncloud
- OWNCLOUD_DB_PASSWORD=pazzword
- OWNCLOUD_DB_HOST=localhost
- OWNCLOUD_ADMIN_USERNAME=${ADMIN_USERNAME}
- OWNCLOUD_ADMIN_PASSWORD=${ADMIN_PASSWORD}
- OWNCLOUD_MYSQL_UTF8MB4=true
volumes:
- files:/home/owncloud
db:
image: mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=passwd
- MYSQL_USERNAME=owncloud
- MYSQL_PASSWORD=passwd
- MYSQL_DATABASE=owncloud
- MYSQL_MAX_ALLOWED_PACKET=128M
- MYSQL_INNODB_LOG_FILE_SIZE=64M
volumes:
- mysql:/var/lib/mysql
текущие правила iptables:
# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy DROP)
target prot opt source destination
DOCKER-ISOLATION all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
DOCKER all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain DOCKER (1 references)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 172.19.0.3 tcp dpt:8080
Chain DOCKER-ISOLATION (1 references)
target prot opt source destination
DROP all -- 0.0.0.0/0 0.0.0.0/0
DROP all -- 0.0.0.0/0 0.0.0.0/0
DROP all -- 0.0.0.0/0 0.0.0.0/0
DROP all -- 0.0.0.0/0 0.0.0.0/0