the output of docker ps should list container ids
I put the docker logs container id in
What should I do next to get the instance back up in the browser?
what’s the output of the docker logs <container-id>
command?
Initializing database
2020-03-03T17:52:24.427862Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-03-04T16:18:19.820023Z 0 [Note] mysqld: ready for connections.
Version: ‘5.7.28’ socket: ‘/var/run/mysqld/mysqld.sock’ port: 3306 MySQL Community Server (GPL)
2020-03-04T16:18:20.733854Z 0 [Note] InnoDB: Buffer pool(s) load completed at 200304 16:18:20
that’s the mysql container log
Stephen
Please tell me where to find container log
is it the instance ID.
what’s the output of
docker ps
formatting not right
container ID 4517252d9a12
IMAGE openemr/mysql-xtrabackup:latest
COMMAND “docker-entrypoint…”
CREATED 25 hours ago
STATUS Up 2 hours PORTS
NAMES lightsail_mysql_1
what about output of
docker-compose config
The program ‘docker-compose’ is currently not installed. You can install it by typing:
apt install docker-compose
sorry, it’s the one in your current folder
./docker-compose config
mysql:
command:
- mysqld
- --character-set-server=utf8
environment:
MYSQL_ROOT_PASSWORD: root
image: openemr/mysql-xtrabackup:latest
restart: always
volumes:
- sqlbackup:/mnt/backups:rw
- databasevolume:/var/lib/mysql:rw
openemr:
environment:
Domain: om.com
Email: mr@hotmail.com
MYSQL_HOST: mysql
MYSQL_PASS: openemr
MYSQL_ROOT_PASS: root
MYSQL_USER: openemr
OE_PASS: pass
OE_USER: admin
image: openemr/openemr:5.0.2
links:
- mysql
ports:
- 80:80/tcp
- 443:443/tcp
restart: always
volumes:
- logvolume01:/var/log:rw
- sitevolume:/var/www/localhost/htdocs/openemr/sites:rw
version: '3.1'
volumes:
databasevolume: {}
logvolume01: {}
sitevolume: {}
sqlbackup: {}
looks good, for forum posts use 3 backticks to get better formatting (if you click edit you’ll see)
try posting the docker ps again, there should be 2 dockers running
I only see 1 using the docker ps
It is the same as the previous one I posted
./docker-compose ps -a
List containers.
Usage: ps [options] [SERVICE…]
Options:
-q Only display IDs’’’