-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
115 lines (107 loc) · 2.62 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
services:
app:
container_name: framework-app
build:
context: .
dockerfile: Dockerfile
extra_hosts:
- host.docker.internal:host-gateway
ports:
- 80:80
- 443:443
- 5173:5173
- 5174:5174
environment:
- XDEBUG_PORT=9000
- XDEBUG_CLIENT_HOST=host.docker.internal
volumes:
- ./:/var/www/html
depends_on:
- mysql
- phpmyadmin
- redis
networks:
- lion
mailhog:
image: mailhog/mailhog
container_name: framework-mailhog
restart: unless-stopped
ports:
- 8025:8025
- 1025:1025
networks:
- lion
redis:
image: redis
container_name: framework-redis
restart: always
ports:
- 6379:6379
volumes:
- redis_data:/data
environment:
REDIS_HOST: redis
REDIS_PASSWORD: lion
REDIS_DATABASES: 1
networks:
- lion
mysql:
image: mysql
container_name: framework-mysql
ports:
- 3306:3306
environment:
MYSQL_DATABASE: lion_database
MYSQL_PASSWORD: lion
MYSQL_ROOT_PASSWORD: lion
volumes:
- mysql_data:/var/lib/mysql
networks:
- lion
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: framework-phpmyadmin
links:
- mysql:mysql
ports:
- 8080:80
environment:
PMA_HOST: mysql
MYSQL_USER: root
MYSQL_PASSWORD: lion
MYSQL_ROOT_PASSWORD: lion
networks:
- lion
# postgres:
# image: postgres
# container_name: framework-postgres
# ports:
# - 5432:5432
# environment:
# POSTGRES_DB: lion_database
# POSTGRES_USER: root
# POSTGRES_PASSWORD: lion
# volumes:
# - postgres_data:/var/lib/postgresql/data
# networks:
# - lion
# pgadmin:
# image: dpage/pgadmin4
# container_name: framework-pgadmin4
# ports:
# - 5050:80
# environment:
# PGADMIN_DEFAULT_EMAIL: root@dev.com
# PGADMIN_DEFAULT_PASSWORD: lion
# depends_on:
# - postgres
# networks:
# - lion
volumes:
mysql_data:
postgres_data:
redis_data:
driver: local
networks:
lion:
driver: bridge