-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·51 lines (47 loc) · 955 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·51 lines (47 loc) · 955 Bytes
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
services:
api-nginx:
build:
context: './docker/nginx'
ports:
- "8081:80"
depends_on:
- api-php-fpm
api-php-fpm:
build:
context: .
dockerfile: docker/php-fpm/Dockerfile
volumes:
- ./:/var/www/api
restart: on-failure
user: root
environment:
PHP_IDE_CONFIG: "serverName=Docker"
depends_on:
- api-mysql
api-php-cli:
build:
context: .
dockerfile: docker/php-cli/Dockerfile
volumes:
- ./:/var/www/api
restart: on-failure
user: root
environment:
PHP_IDE_CONFIG: "serverName=Docker"
depends_on:
- api-mysql
api-mysql:
image: mysql:8.0
container_name: mysql
restart: always
environment:
MYSQL_DATABASE: app
MYSQL_USER: user
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
ports:
- "33061:3306"
volumes:
- mysql_data:/var/lib/mysql
volumes:
mysql_data: