22 lines
576 B
YAML
22 lines
576 B
YAML
version: '3.8'
|
|
services:
|
|
web:
|
|
image: suhailregistry.azurecr.io/fruitapp-frontend:latest
|
|
restart: on-failure:5
|
|
backend-service:
|
|
image: suhailregistry.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
|