I built a pair of container, and thy worked fine, but after a reeboot of my PC (Windows 10) I get a “connection refused” error, trying to connect to my webapp (127.0.0.1:8080 or 127.0.0.1:8000).
Version:
docker version
Client:
Version: 18.06.1-ce
API version: 1.38
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:21:34 2018
OS/Arch: windows/amd64
Experimental: false
Server:
Engine:
Version: 18.06.1-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: e68fc7a
Built: Tue Aug 21 17:29:02 2018
OS/Arch: linux/amd64
Experimental: false
Container:
docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
497aa2558a40 mediawiki "docker-php-entrypoi…" 3 days ago Up 3 hours 0.0.0.0:8080->80/tcp wiki_mediawiki_1
0023dc3df916 mysql:5.7 "docker-entrypoint.s…" 5 days ago Up 3 hours 3306/tcp, 33060/tcp wiki_database_1
462ff0764388 mysql:5.7 "docker-entrypoint.s…" 6 days ago Up 3 hours 3306/tcp, 33060/tcp blog_mysql_1
4489b26b605b ecb1c5203e49 "docker-entrypoint.s…" 6 days ago Up 3 hours 0.0.0.0:8000->80/tcp blog_wordpress_1
There are the compose (worked before the reboot):
Mediawiki (Local settings in the right directory):
# MediaWiki with MariaDB
#
# Access via "http://localhost:8080"
# (or "http://$(docker-machine ip):8080" if using docker-machine)
version: '3'
services:
mediawiki:
image: mediawiki
restart: always
ports:
- 8080:80
links:
- database
volumes:
- db_wiki:/var/www/html/images
# After initial setup, download LocalSettings.php to the same directory as
# this yaml and uncomment the following line and use compose to restart
# the mediawiki service
- ./LocalSettings.php:/var/www/html/LocalSettings.php
database:
image: mysql:5.7
restart: always
environment:
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
MYSQL_DATABASE: wiki
MYSQL_USER: root
MYSQL_PASSWORD: password
#MYSQL_RANDOM_ROOT_PASSWORD: yes
MYSQL_ROOT_PASSWORD: password
volumes:
db_wiki:
Wordpress:
version: '3.3'
services:
#db:
mysql:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: blog
MYSQL_USER: user
MYSQL_PASSWORD: password
wordpress:
#depends_on:
#- db
#links:
#- db
image: wordpress
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: mysql:3306
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: password
volumes:
db_data:
Volumes:
docker volume ls
DRIVER VOLUME NAME
local 23d6f231028941256ae3b73689575f4778da614848f0ad84da662a63bae003e2
local 392329000cabed2046d60e95df10af7393ab7722ceddb5bdc3d3a48fc5650b82
local 3adf53d60825b43133e4f23da2120725ecb84a92489669f31690e90ff2d14f21
local 3db2022b3d7eafaf4e7a98f9b4b7f9f8309d948c6bd5fbf1b250e82f819231d7
local 3dc0cfad2c32940f9e34ba7f372ff51e752072282d20d4cc1865ce55671ab6a3
local 64eafa4e5624ab8d14c63666799c73fdab3264b1cd10e9279c52a380c469fae3
local 733dbdb0d7121d6434dac538f63239b57b7cb1db88b0d3c2aeb7c642003de86b
local 7aaeb0fae7dd165c1055f505015e7ec6c23d97e00849256f3b27e8887aeba3b2
local 8d34e5722c896cc6898f71d5bf6dbc6410637af9558a1538653ff77167c554ad
local 914c1aff986bdf77e32f2b77ea3c3d587cf24408cf7d5e9306c84e35fa76c305
local 993cff97dfb64f1595f4daf12ba1070057bb5803ae66e907d0f4023d4071a5a6
local 9d8bd225a768ac1b93f4087d02dbaa0ff4f9e665ac26e6f73ae6bcdac818597b
local a373735bb8a75ca86c2bcbb5245f5b38c46ef7e74785dfd5e268a86bf0cfcc31
local b4154b236195e62e71ca9ae77c7cf70479a0283fccefa976187931847d6724d1
local b640e2e224310d8720a39aa39f54d0e5d88fe38a26d0591878987e13406cb1d2
local blog_blog_db_data
local blog_db_data
local c1c049734213de6d2c8b0335119cd4703ead0d1aa3d95ba01563b5e51bc628fd
local c6f72d778123b5d22d858719f8e02b591a689d863d9d51263443f99d93afca37
local cc86fe532fa46304381cac31cd0abae2f5b6d71a107a36becaf1bc0ef8b6559a
local ccafc731d7721e76e766b004b7e8ed77f612218c8a733eaf93478ae76973f649
local cee94994d983ac60e4bf948252e7a4b507b08e61e14e4caee65368dd1df0f31b
local d4328cccd74315e017a74fc7e0d8576c54cb2683cb24ae6315651f0fa373f73e
local ef6d11eea02067c8d9441eaee772fdade83e41edd7e2d49444a7bcb94eb7a443
local f2dff54f5706005e5db4c3b1134de624676de7ff9b04be236ca11b5f49b78371
local fcb3272b742922ed3928c7ce19959834a14d8126ab1548c6d4f386862e0f19a8
local wiki_db_wiki
Thank you for the help!