Exemplo de docker-compose.yml

From Basef
Jump to: navigation, search

Segue abaixo exemplo de arquivo docker-compose.yml:

db:
   image: mysql
   environment:
      - MYSQL_ROOT_PASSWORD=test123
 
blog:
   image: wordpress
   environment:
      - WORDPRESS_DB_PASSWORD=test123
   links:
      - db:mysql
   ports:
      - 80:80