Zkt22/z3/az-docker-compose.yml

22 lines
578 B
YAML
Raw Normal View History

2022-05-22 10:40:18 +00:00
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