-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
50 lines (46 loc) · 955 Bytes
/
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
version: "3.5"
services:
mysql:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: app
MYSQL_USER: app
MYSQL_PASSWORD: app
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
nginx:
platform: linux/x86_64
build: docker/nginx
depends_on:
- app
environment:
PHP_FPM_IP: app
PHP_FPM_PORT: 9000
ports:
- 8000:80
volumes:
- .:/app
app:
platform: linux/x86_64
build:
context: docker/php
target: base
depends_on:
- mysql
environment:
DATABASE_URL: "mysql://app:app@mysql:3306/app?serverVersion=8"
volumes:
- .:/app
admin:
platform: linux/x86_64
image: node:12-alpine
command: sh -c "yarn install && yarn start"
depends_on:
- app
ports:
- 3000:3000
volumes:
- ./admin_frontend:/admin
working_dir: /admin