-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml.example
53 lines (48 loc) · 1.35 KB
/
docker-compose.yml.example
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
###############################################################################
# Generated on phpdocker.io #
###############################################################################
version: "3.1"
services:
#PHP Service
php-fpm:
build: phpdocker/php-fpm
container_name: au-php-fpm
restart: unless-stopped
working_dir: /application
volumes:
- .:/application
- ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini
environment:
- "DB_PORT=3306"
- "DB_HOST=mysql"
#MySQL Service
mysql:
image: mysql:5.7
container_name: au-mysql
working_dir: /application
volumes:
- .:/application
environment:
- MYSQL_ROOT_PASSWORD=secreto
- MYSQL_DATABASE=database
- MYSQL_USER=user
- MYSQL_PASSWORD=secreto
ports:
- "3306:3306"
#Nginx Service
webserver:
image: nginx:alpine
container_name: au-webserver
restart: unless-stopped
working_dir: /application
volumes:
- .:/application
- ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "80:80"
- "443:443"
adminer:
image: adminer
restart: unless-stopped
ports:
- "8080:8080"