forked from testsmith-io/practice-software-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
101 lines (93 loc) · 2.04 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
version: '2'
services:
# The Application
laravel-api:
build:
context: ./_docker
dockerfile: app.docker
working_dir: /var/www
volumes:
- ./${SPRINT_FOLDER}/API:/var/www:cached
environment:
- "PHP_OPCACHE_VALIDATE_TIMESTAMPS=1"
- "DB_PORT=3306"
- "DB_HOST=mariadb"
- "host=localhost"
angular-ui:
build:
context: ./_docker
dockerfile: ui.docker
working_dir: /app
volumes:
- ./${SPRINT_FOLDER}/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
- phpmyadmindata:/var/www/phpmyadmin
ports:
- 8091:80
- 8000:81
depends_on:
- phpmyadmin
- laravel-api
cron:
build:
context: ./_docker/cron
dockerfile: Dockerfile
container_name: cron
volumes_from:
- laravel-api
working_dir: /var/www
environment:
- "PHP_OPCACHE_VALIDATE_TIMESTAMPS=1"
- "DB_PORT=3306"
- "DB_HOST=mariadb"
- "host=localhost"
composer:
restart: 'no'
image: composer:2.5.0
command: install --no-dev --optimize-autoloader
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
phpmyadmin:
image: phpmyadmin/phpmyadmin:fpm-alpine
links:
- mariadb:db
environment:
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: root
volumes:
- phpmyadmindata:/var/www/html
mailhog:
image: mailhog/mailhog:v1.0.1
logging:
driver: 'none' # disable saving logs
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui
volumes:
db:
phpmyadmindata:
laravel-api: