forked from testsmith-io/practice-software-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (62 loc) · 1.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (62 loc) · 1.43 KB
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
version: '3.8'
services:
# The Application
laravel-api:
build:
context: ./_docker
dockerfile: api.docker
target: development
working_dir: /var/www
volumes:
- ./${SPRINT}/API:/var/www:cached
environment:
- "PHP_OPCACHE_VALIDATE_TIMESTAMPS=1"
- "DB_PORT=3306"
- "DB_HOST=mariadb"
- "host=localhost"
- DISABLE_LOGGING=${DISABLE_LOGGING}
angular-ui:
build:
context: ./_docker
dockerfile: ui.docker
target: development
working_dir: /app
volumes:
- ./${SPRINT}/UI:/app:cached
ports:
- 4200:4200
command: >
bash -c "npm install --force && ng serve --host 0.0.0.0 --port 4200"
# The Web Server
web:
build:
context: ./_docker
dockerfile: web.docker
working_dir: /var/www
volumes:
- laravel-api:/var/www
ports:
- 8091:80
- 8000:81
depends_on:
- laravel-api
composer:
image: composer:2.6.6
command: install --no-dev --optimize-autoloader --ignore-platform-req=ext-ffi && chown -R www-data /var/www && chmod 777 /var/www
volumes_from:
- laravel-api
working_dir: /var/www
# The Database
mariadb:
image: yobasystems/alpine-mariadb:10.6.11
ports:
- 3306:3306
expose:
- 3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: user
MYSQL_PASSWORD: root
MYSQL_DATABASE: toolshop
volumes:
laravel-api: