-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker install instructions #136
Comments
I have tried building, but build fails (last part of build log below)
|
I have updated a docker-compose config which now gets most of the way to running (see below). log:
docker-compose.yml version: '3'
services:
nosh-web:
restart: always
build:
context: ../nosh2/
dockerfile: Dockerfile
container_name: nosh-web
depends_on:
- nosh-db
expose:
- "9000"
volumes:
- noshweb:/var/www/nosh
- noshdocuments:/noshdocuments
environment:
DB_HOST: ${DB_HOST}
DB_DATABASE: nosh
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
networks:
docker2:
ipv4_address: ${IP_NOSHWEB}
nosh-db:
container_name: nosh-db
image: mysql:5.7
restart: always
volumes:
- noshdb:/var/lib/mysql
environment:
MYSQL_DATABASE: nosh
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
expose:
- "3306"
networks:
docker2:
ipv4_address: ${IP_NOSHDB}
# network
networks:
docker2:
external:
name: docker2
# named volumes
volumes:
noshweb:
driver: local
driver_opts:
type: 'none'
device: '${PWD}/volumes/noshweb'
o: 'bind'
noshdocuments:
driver: local
driver_opts:
type: 'none'
device: '${PWD}/volumes/noshdocs'
o: 'bind'
noshdb:
driver: local
driver_opts:
type: 'none'
device: '${PWD}/volumes/noshdb'
o: 'bind' a lot of the networking stuff is particular to my install and not needed for a simple docker deployment, but that's not the cause of the issue. I think the database hasn't been properly populated. |
Please review docker-nosh for a completed Docker solution for NOSH. |
I note there is a Dockerfile in the repository.
It would be helpful to have some information about installation with Docker (ideally with docker-compose).
Is the docker installation working/tested?
The text was updated successfully, but these errors were encountered: