-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (62 loc) · 1.87 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
version: '3'
services:
php:
image: php:7.4-apache
restart: always
depends_on:
database:
condition: service_healthy
volumes:
- /etc/localtime:/etc/localtime:ro
- .:${APACHE_DOCUMENT_ROOT}
environment:
- APACHE_DOCUMENT_ROOT=${APACHE_DOCUMENT_ROOT}
working_dir: "${APACHE_DOCUMENT_ROOT}"
ports:
- '${APACHE_PORT}:80'
links:
- "database:db"
entrypoint: [ "/bin/sh", "-c" ]
command:
- |
/bin/sh ./docker/php/init.sh
php artisan migrate:fresh --seed
php artisan storage:link
chmod o+w ./storage/ -R
apachectl -D FOREGROUND
nodejs:
image: node:16.13.2
volumes:
- .:/blood-cancer-management-platform
working_dir: '/blood-cancer-management-platform'
entrypoint: [ "/bin/sh", "-c" ]
command:
- |
npm install
npm run dev
composer:
image: composer:2.2.5
volumes:
- .:/code
working_dir: '/code'
entrypoint: [ "/bin/sh", "-c" ]
command:
- |
composer install --ignore-platform-reqs
database:
image: mariadb:10.5.10
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
expose:
- '3306'
volumes:
- "./docker/mariadb/ddl.sql:/docker-entrypoint-initdb.d/1.sql"
- "./docker/mariadb/mariadb.cnf:/etc/mysql/conf.d/mariadb.cnf"
- /etc/localtime:/etc/localtime:ro
command:
- mysqld
- --character-set-server=utf8
- --collation-server=utf8_general_ci
healthcheck:
test: "ss -tulpn | grep ':3306' || exit 1"