-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (83 loc) · 2.08 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
# Copyright VMware, Inc.
# SPDX-License-Identifier: APACHE-2.0
version: '3'
services:
mariadb:
image: docker.io/bitnami/mariadb:11.1
ports:
- '7999:3306'
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
#- MARIADB_ROOT_PASSWORD=example
- MARIADB_USER=bn_myapp
- MARIADB_DATABASE=bitnami_myapp
healthcheck:
test: ["CMD", "mariadb-admin", "ping", "-h", "mariadb", "-u", "root"]
interval: 5s
timeout: 5s
retries: 55
backend:
image: docker.io/bitnami/laravel:10
ports:
- '8000:8000'
environment:
- DB_HOST=mariadb
- DB_PORT=3306
- DB_USERNAME=bn_myapp
- DB_DATABASE=bitnami_myapp
volumes:
- './backend/checkpreco:/app'
#command: ["composer", "install"]
#command: ["php", "artisan", "migrate"]
#&& php artisan db:seed --class=Neighborhood
depends_on:
mariadb:
condition: service_healthy
dashboard:
build:
context: dashboard
args:
FLASK_APP: app.py
FLASK_ENV: development
target: builder
volumes:
- ./dashboard/dashboard:/code
command: flask --app app.py --debug run --host=0.0.0.0
ports:
- 8001:5000
environment:
- DATABASE_NAME=postgres
- DATABASE_USER=postgres
- DATABASE_PASSWORD=postgres
- DATABASE_PORT=5432
depends_on:
mariadb:
condition: service_healthy
frontend:
build:
context: frontend
dockerfile: Dockerfile.yaml
volumes:
- ./frontend/frontend:/code
# - ./static:/code/src/static
command: npm run dev
ports:
- 8002:5173
environment:
- DATABASE_NAME=mysql
- DATABASE_USER=mysql
- DATABASE_PASSWORD=example
- DATABASE_PORT=7999
depends_on:
mariadb:
condition: service_healthy
#redis:
# image: 'bitnami/redis:latest'
# environment:
# - ALLOW_EMPTY_PASSWORD=yes
# ports:
# - '6379:6379'
# command: /opt/bitnami/scripts/redis/run.sh --maxmemory 100mb
# networks:
# - app-tier