-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (101 loc) · 2.39 KB
/
docker-compose.yml
File metadata and controls
108 lines (101 loc) · 2.39 KB
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
services:
php:
container_name: bundle-php
build:
context: .
dockerfile: Dockerfile
ports:
- 80:80
- 443:443
- 8000:8000
- 8001:8001
- 8002:8002
- 9000:9000
- 5173:5173
- 4321:4321
volumes:
- ./:/var/www/html
depends_on:
- mysql
- redis
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- lion
redis:
image: redis
container_name: bundle-redis
restart: always
ports:
- 6379:6379
volumes:
- redis_data:/var/lib/redis
environment:
REDIS_HOST: redis
REDIS_PASSWORD: lion
REDIS_DATABASES: 1
networks:
- lion
mysql:
image: mysql
container_name: bundle-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: bundle-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: bundle-postgres
ports:
- 5432:5432
environment:
POSTGRES_DB: lion_database
POSTGRES_USER: root
POSTGRES_PASSWORD: lion
volumes:
- postgres_data:/var/lib/postgresql
networks:
- lion
pgadmin:
image: dpage/pgadmin4
container_name: bundle-pgadmin4
ports:
- 5050:80
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: lion
depends_on:
- postgres
volumes:
- pgadmin_data:/var/lib/pgadmin
networks:
- lion
volumes:
mysql_data:
postgres_data:
pgadmin_data:
redis_data:
driver: local
networks:
lion:
driver: bridge