-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
49 lines (44 loc) · 1014 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
version: '3'
services:
nginx:
container_name: my-project-nginx
build: docker/nginx
ports:
- '8088:80'
volumes:
- ./:/var/www/app
- ./docker/nginx/default-compose.conf:/etc/nginx/conf.d/default-compose.conf
networks:
- my-network
php:
container_name: my-project-fpm
build: docker/php
volumes:
- ./:/var/www/app
networks:
- my-network
mysql:
container_name: my-project-mysql
build: docker/mysql
restart: on-failure
environment:
MYSQL_ROOT_PASSWORD: "root"
volumes:
- ./docker/mysql/init:/docker-entrypoint-initdb.d/init.sql
networks:
- my-network
phpmyadmin:
container_name: my-project-phpmyadmin
build: docker/phpmyadmin
restart: on-failure
ports:
- 7476:80
environment:
- PMA_HOST=mysql
- MYSQL_ROOT_PASSWORD=root
volumes:
- ./docker/phpmyadmin/upload.ini:/usr/local/etc/php/php.ini
networks:
- my-network
networks:
my-network: