Docker-Compose persistent data MySQL

I can’t seem to get MySQL data to persist if I run $ docker-compose down with the following .yml version: ‘2’ services: # other services data: container_name: flask_data image: mysql:latest volumes: – /var/lib/mysql command: “true” mysql: container_name: flask_mysql restart: always image: mysql:latest environment: MYSQL_ROOT_PASSWORD: ‘test_pass’ # TODO: Change this MYSQL_USER: ‘test’ MYSQL_PASS: ‘pass’ volumes_from: – … Read more

Can’t connect to docker from docker-compose

I installed docker-machine 0.1.0 and docker-compose 1.1.0 on Mac OS 10.8.5.Docker-machine is running normally and able to connect by docker-machine ssh. $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM dev * virtualbox Running tcp://192.168.99.100:2376 However can’t connect from docker-compose. $ docker-compose up Couldn’t connect to Docker daemon at http+unix://var/run/docker.sock – is it running? If … Read more

Docker-compose: node_modules not present in a volume after npm install succeeds

I have an app with the following services: web/ – holds and runs a python 3 flask web server on port 5000. Uses sqlite3. worker/ – has an index.js file which is a worker for a queue. the web server interacts with this queue using a json API over port 9730. The worker uses redis … Read more

How do I mount a host directory as a volume in docker compose

I have a development environment I’m dockerizing and I would like the ability to livereload my changes without having to rebuild docker images. I’m using docker compose because redis is one of my app’s dependencies and I like being able to link a redis container I have two containers defined in my docker-compose.yml: node: build: … Read more

Docker “ERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network”

I have a directory apkmirror-scraper-compose with the following structure: . ├── docker-compose.yml ├── privoxy │   ├── config │   └── Dockerfile ├── scraper │   ├── Dockerfile │   ├── newnym.py │   └── requirements.txt └── tor └── Dockerfile I’m trying to run the following docker-compose.yml: version: ‘3’ services: privoxy: build: ./privoxy ports: – “8118:8118” links: – tor tor: … Read more