-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (53 loc) · 1.43 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
version: '3'
services:
phpapache:
build: ./docker/phpapache
ports:
- 8030:80
volumes:
- .:/home/app
- /home/$USER:/home/$USER
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
environment:
APACHE_DOCUMENT_ROOT: /home/app/public
APACHE_RUN_USER: $USER
APACHE_RUN_GROUP: $USER
PHP_MEMORY_LIMIT: 512M
tmpfs:
- /home/var/cache
tty: true
working_dir: /home/app
nodejs:
image: node:12.13.0
ports:
# if serving asset via webpack dev server
- 8032:8032
volumes:
- .:/home/app
- /home/$USER:/home/$USER
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
command: ['node']
tty: true
working_dir: /home/app
environment:
- CHOKIDAR_USEPOLLING=true
# non fonctionnel
#entrypoint: "yarn encore dev-server --hot --host 0.0.0.0 --port 8032"
mysql:
image: mysql/mysql-server:5.7
volumes:
- ./var/lib_mysql:/var/lib/mysql
- ./var/etc_mysql:/etc/mysql
tty: true
ports:
- 8033:3306
env_file:
- .env
phpmyadmin:
image: phpmyadmin/phpmyadmin
env_file:
- .env
ports:
- 8031:80