-
Notifications
You must be signed in to change notification settings - Fork 174
/
docker-compose.yml
executable file
·146 lines (136 loc) · 3.26 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
version: "3.7"
networks:
docker.network:
driver: bridge
services:
php:
build: ./docker/php
restart: unless-stopped
container_name: docker.php
tty: true
depends_on:
- mysql
- postgres
- redis
networks:
- docker.network
volumes:
- .:/var/www
nginx:
build: ./docker/nginx
container_name: docker.nginx
restart: unless-stopped
tty: true
depends_on:
- php
ports:
- "433:433"
- "80:80"
networks:
- docker.network
volumes:
- .:/var/www
# apache:
# build: ./docker/apache
# restart: unless-stopped
# container_name: docker.apache
# tty: true
# depends_on:
# - php
# ports:
# - "80:80"
# - "443:443"
# networks:
# - docker.network
# volumes:
# - .:/var/www
# mariadb:
# image: mariadb
# restart: unless-stopped
# container_name: docker.mariadb
# tty: true
# ports:
# - '3306:3306'
# networks:
# - docker.network
# volumes:
# - './docker/mysql/mariadb.cnf:/etc/mysql/conf.d/custom.cnf:ro'
# - './docker/mysql/dbdata:/var/lib/mysql'
# environment:
# MYSQL_DATABASE: ${MYSQL_DATABASE:-development}
# MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root}
# MYSQL_PASSWORD: ${MYSQL_PASSWORD:-mysql}
# MYSQL_USER: ${MYSQL_USER:-mysql}
mysql:
image: mysql:5
restart: unless-stopped
container_name: docker.mysql
tty: true
ports:
- "3306:3306"
networks:
- docker.network
volumes:
- "./docker/mysql/mysql.cnf:/etc/mysql/conf.d/custom.cnf:ro"
- "./docker/mysql/dbdata:/var/lib/mysql"
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE:-development}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-mysql}
MYSQL_USER: ${MYSQL_USER:-mysql}
phpmyadmin:
image: phpmyadmin
container_name: docker.phpmyadmin
tty: true
depends_on:
- mysql
ports:
- "8080:80"
networks:
- docker.network
environment:
PMA_HOST: mysql
PMA_ARBITRARY: 1
PMA_PORT: 3306
postgres:
image: postgres:15-alpine
container_name: docker.postgres
restart: unless-stopped
tty: true
ports:
- "5432:5432"
networks:
- docker.network
volumes:
- "./docker/postgres/dbdata:/var/lib/postgresql/data"
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-development}
pgadmin:
image: dpage/pgadmin4
container_name: docker.pgadmin
tty: true
depends_on:
- postgres
ports:
- "8081:80"
networks:
- docker.network
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
redis:
image: bitnami/redis:latest
restart: unless-stopped
container_name: docker.redis
tty: true
ports:
- "6379:6379"
networks:
- docker.network
volumes:
- ./docker/redis:/bitnami/redis/data
environment:
ALLOW_EMPTY_PASSWORD: ${REDIS_ALLOW_EMPTY_PASSWORD:-no}
REDIS_PASSWORD: ${REDIS_PASSWORD:-redis}