-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
56 lines (51 loc) · 1.01 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
version: "3.7"
services:
php:
build:
dockerfile: ./Dockerfile
target: build
context: .
env_file: .env
environment:
PHP_OPCACHE_ENABLE: 0
volumes:
- ./:/var/www:delegated
ports:
- "80:8080"
depends_on:
- database
nodejs:
image: node:16-alpine
working_dir: /app
environment:
HOME: /tmp/npm
volumes:
- ./:/app:delegated
command: >
sh -c "
npm ci &&
npm run dev
"
database:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
env_file: .env
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
ports:
- 33066:3306
volumes:
- database:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
env_file: .env
environment:
PMA_HOST: database
PMA_USER: ${DB_USERNAME}
PMA_PASSWORD: ${DB_PASSWORD}
ports:
- 8080:80
volumes:
database:
driver: local