-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
52 lines (47 loc) · 1.12 KB
/
docker-compose.yaml
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
version: '3.7'
services:
db:
image: mysql:8.0.20
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- "127.0.0.1:3306:3306"
networks:
- backend
nginx:
image: nginx:1.19.0
volumes:
- ./nginx/planner.conf:/etc/nginx/includes/planner.conf
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- "80:80"
environment:
- FASTCGI_HOST=fpm
- FASTCGI_PORT=9000
networks:
- backend
fpm:
build: ./fpm
environment:
XDEBUG_CONFIG: "remote_host=172.17.0.1 remote_enable=1 remote_autostart=1 remote_port=9008 idekey=PHPSTORM remote_connect_back=0"
volumes:
- ../planner/:/code
- ./fpm/php.ini:/usr/local/etc/php/php.ini
- ./fpm/php-fpm.conf:/etc/php7/php-fpm.conf
working_dir: /code
networks:
- backend
planner-client:
image: node:14.5.0
volumes:
- ../planner-client:/code
working_dir: /code
command: "npm run start:docker"
ports:
- "4200:4200"
networks:
- backend
networks:
backend: