2022-05-22 10:40:18 +00:00
|
|
|
version: '3.8'
|
|
|
|
services:
|
|
|
|
web:
|
2022-05-22 10:56:06 +00:00
|
|
|
image: suhailregistry.azurecr.io/fruitapp-frontend:latest
|
2022-05-22 10:40:18 +00:00
|
|
|
restart: on-failure:5
|
|
|
|
backend-service:
|
2022-05-22 10:56:06 +00:00
|
|
|
image: suhailregistry.azurecr.io/fruitapp-backend:latest
|
2022-05-22 10:40:18 +00:00
|
|
|
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
|