Zkt22/z3/az-docker-compose.yml
2022-05-22 16:10:18 +05:30

22 lines
578 B
YAML

version: '3.8'
services:
web:
image: suhailregistry1.azurecr.io/fruitapp-frontend:latest
restart: on-failure:5
backend-service:
image: suhailregistry1.azurecr.io/fruitapp-backend:latest
restart: on-failure:5
env:
- name: SQLALCHEMY_DATABASE_URI
value: mysql://user:password@mysql-service/main
- name: FLASK_APP
value: app.py
- name: MYSQL_DATABASE
value: main
- name: MYSQL_USER
value: user
- name: MYSQL_PASSWORD
value: password
- name: MYSQL_ROOT_PASSWORD
value: root