-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.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
version: '3.8'
services:
db:
image: mysql:8.0.32
container_name: qa_test_db
volumes:
- db_data:/var/lib/mysql
- ./db:/docker-entrypoint-initdb.d
ports:
- 3400:3306
environment:
- MYSQL_ROOT_PASSWORD=root
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
command: --sql_mode=""
backend:
build:
context: ./backend
container_name: qa_test_backend
working_dir: /var/www/html
depends_on:
- db
ports:
- 8400:80
volumes:
- ./backend:/var/www/html
command: sh -c "composer install && apache2-foreground"
frontend:
image: node:16.20.1-alpine
container_name: qa_test_frontend
user: root
depends_on:
- backend
environment:
- WDS_SOCKET_PORT=0
ports:
- 5400:3000
volumes:
- ./frontend:/app
working_dir: /app
command: sh -c "npm install --legacy-peer-deps --verbose && npm start"
networks:
default:
name: qa_test_network
volumes:
db_data:
name: test_qa_db_data