Skip to content

Instantly share code, notes, and snippets.

@mprokopov
Created April 26, 2020 09:21
Show Gist options
  • Select an option

  • Save mprokopov/012c0e71da7c7673655a788522259170 to your computer and use it in GitHub Desktop.

Select an option

Save mprokopov/012c0e71da7c7673655a788522259170 to your computer and use it in GitHub Desktop.
example of docker-compose YAML file
version: "3.5"
services:
redis:
image: redis:latest
networks:
- dev
mysql:
image: mysql:latest
environment:
MYSQL_USER: myuser
MYSQL_PASSWORD: password
volumes:
- mysql-db: /var/lib/mysql
networks:
- dev
app:
image: simple:14
environment:
MYSQL_USER: myuser
MYSQL_PASSWORD:
MYSQL_DATABASE: db
MYSQL_HOST: mysql
networks:
- dev
networks:
dev:
volumes:
mysql-db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment