-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
93 lines (84 loc) · 2.4 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
services:
bakery-gateway:
container_name: gateway
depends_on:
- "bakery-front"
- "workbench-front"
- "bakery-back"
image: cruibakeryonprem.azurecr.io/cloud/gateway:${UI_BAKERY_VERSION:-latest}
restart: always
env_file: .env
ports:
- "${UI_BAKERY_PORT:-3030}:3030"
bakery-front:
container_name: bakery-front
image: cruibakeryonprem.azurecr.io/cloud/bakery-front:${UI_BAKERY_VERSION:-latest}
restart: always
env_file: .env
workbench-front:
container_name: workbench-front
image: cruibakeryonprem.azurecr.io/cloud/workbench-front:${UI_BAKERY_VERSION:-latest}
restart: always
env_file: .env
datasource:
container_name: datasource
image: cruibakeryonprem.azurecr.io/cloud/datasource:${UI_BAKERY_VERSION:-latest}
restart: always
env_file: .env
bakery-back:
container_name: bakery-back
depends_on:
db:
condition: service_healthy
image: cruibakeryonprem.azurecr.io/cloud/bakery-back:${UI_BAKERY_VERSION:-latest}
restart: always
env_file: .env
automation:
container_name: automation
image: cruibakeryonprem.azurecr.io/cloud/automation:${UI_BAKERY_VERSION:-latest}
restart: always
env_file: .env
python-runtime:
container_name: python-runtime
image: cruibakeryonprem.azurecr.io/cloud/python-runtime:${UI_BAKERY_VERSION:-latest}
restart: always
env_file: .env
db:
platform: linux/amd64
container_name: db
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password --skip-log-bin
restart: always
cap_add:
- SYS_NICE # CAP_SYS_NICE
environment:
MYSQL_DATABASE: "bakery"
MYSQL_USER: "bakery"
MYSQL_PASSWORD: "bakery"
MYSQL_ROOT_PASSWORD: "root"
volumes:
- my-db:/var/lib/mysql
healthcheck:
test: mysql -h localhost -u bakery --password=bakery -e "select 1";
timeout: 1s
interval: 10s
retries: 10
# Internal UI Bakery Database, available as a datasource in UI Bakery
bakery-db:
image: "postgres:16.1"
container_name: bakery-db
restart: always
environment:
POSTGRES_USER: "bakery"
POSTGRES_PASSWORD: "bakery"
POSTGRES_DB: "bakery"
healthcheck:
test: pg_isready -U bakery
interval: 1s
timeout: 5s
retries: 10
volumes:
- internal-db:/var/lib/postgresql/data
volumes:
my-db:
internal-db: