Docker Cheat Sheet
Commands
docker-compose up -d
docker-compose down
docker exec -i -t container_name /bin/bash
Dateien
docker-compose.yaml
version: '3'
services:
db:
image: postgres:9.6.5-alpine
volumes:
- pgdata:/db/pgdata
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: 123456
PGDATA: /db/pgdata
volumes:
pgdata:
Dockerfile
Links
https://docs.docker.com/compose/gettingstarted/#step-4-build-and-run-your-app-with-compose
https://docs.docker.com/compose/wordpress/#build-the-project
https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices