-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·93 lines (91 loc) · 2.54 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3'
networks:
blog-network:
services:
blog-phpmyadmin:
image: phpmyadmin
ports:
- "8080:80"
tty: true
environment:
- PMA_ARBITRARY=1
- PMA_HOST=blog-mysql
- PMA_USER=root
- PMA_PASSWORD=${MYSQL_ROOT_PASSWORD}
networks:
- blog-network
volumes:
- .:/app
restart: always
depends_on:
- blog-mysql
blog-mysql:
build:
context: ./docker/mysql
dockerfile: Dockerfile
args:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
tty: true
cap_add:
- SYS_NICE
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- mysql_data:/var/lib/mysql
ports:
- "3306:3306"
networks:
- blog-network
restart: unless-stopped
blog-php:
build:
context: ./
dockerfile: ./docker/php/Dockerfile
tty: true
volumes:
- .:/app
working_dir: /app
environment:
- PHP_IDE_CONFIG=serverName=blog.loc
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=12345
- XDEBUG_MODES=develop,debug
- REMOTE_HOST=host.docker.internal
- REMOTE_PORT=9003
- IDE_KEY=docker
extra_hosts:
- host.docker.internal:host-gateway
networks:
- blog-network
restart: always
depends_on:
- blog-mysql
blog-nginx:
build:
context: ./docker/nginx
dockerfile: Dockerfile
ports:
- 8000:80
volumes:
- .:/app
networks:
- blog-network
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
- blog-php
###> symfony/mailer ###
mailer:
image: schickling/mailcatcher
ports: ["1025", "1080"]
###< symfony/mailer ###
volumes:
mysql_data: