-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
111 lines (105 loc) · 2.8 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
networks:
libhubtec-net:
driver: bridge
services:
service_db:
image: mysql:5.7
container_name: libhubtec-mysql-57
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: libhubtec_db
MYSQL_USER: libhubtec
MYSQL_PASSWORD: password
ports:
- "3306:3306"
networks:
- libhubtec-net
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_spanish2_ci
service_laravel:
image: shinsenter/laravel:php8.2-alpine
container_name: libhubtec-laravel-11
environment:
DB_HOST: service_db
DB_DATABASE: libhubtec_db
DB_USERNAME: libhubtec
DB_PASSWORD: password
APP_URL: http://192.168.33.99:8000
FILESYSTEM_DISK: public
MOONSHINE_TITLE: AdminPanel
MOONSHINE_LOGO: http://192.168.33.99:8000/vendor/moonshine/android-chrome-512x512.png
MOONSHINE_LOGO_SMALL: http://192.168.33.99:8000/moonshine/vendor/android-chrome-192x192.png
ports:
- "8000:80"
- "443:443"
- "443:443/udp"
volumes:
- ./admin-panel:/var/www/html
networks:
- libhubtec-net
command: |
/bin/bash -c "
composer install --ignore-platform-reqs &&
php artisan key:generate &&
php artisan migrate --force &&
php artisan db:seed --class=DatabaseSeeder &&
php artisan app:publish-storage &&
# npm install --production &&
php artisan optimize &&
php artisan config:cache &&
php artisan config:clear &&
php artisan cache:clear &&
php artisan view:clear &&
php artisan route:clear &&
nginx -g 'daemon off;'
"
depends_on:
- service_db
service_angular:
container_name: libhubtec-angular-18
environment:
ENV_BASE_URL_API: http://192.168.33.99:5800
ENV_BASE_URL_STORAGE: http://192.168.33.99:8000
build:
context: ./app-libhubtec
dockerfile: Dockerfile.angular
ports:
- "4200:80"
networks:
- libhubtec-net
depends_on:
- service_db
- service_laravel
service_springboot:
container_name: libhubtec-springboot-3
build:
context: ./ApiLibHubTec
dockerfile: Dockerfile.springboot
ports:
- "5800:5800"
networks:
- libhubtec-net
depends_on:
- service_db
- service_laravel
- service_angular
service_mailpit:
image: axllent/mailpit
container_name: mailpit
restart: unless-stopped
volumes:
- ./data:/data
ports:
- "8025:8025"
- "1025:1025"
networks:
- libhubtec-net
depends_on:
- service_db
- service_laravel
- service_angular
- service_springboot
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1