-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
167 lines (150 loc) · 5.56 KB
/
Copy pathdocker-compose.yml
File metadata and controls
167 lines (150 loc) · 5.56 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
services:
####################################################################################################
# PHP
####################################################################################################
php:
build: .docker/php
ports:
- 5173:5173
volumes:
- .:/var/www:cached
####################################################################################################
# Nginx
####################################################################################################
nginx:
image: nginx
ports:
- 80:80
volumes:
- .:/var/www
- .docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- .docker/nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- php
####################################################################################################
# DATABASE (MySQL)
####################################################################################################
db:
image: mysql:8.1
ports:
- 3306:3306
volumes:
- .docker/db/data:/var/lib/mysql
- .docker/logs:/var/log/mysql
- .docker/db/my.cnf:/etc/mysql/conf.d/my.cnf
- .docker/db/sql:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: refactorian
MYSQL_USER: refactorian
MYSQL_PASSWORD: refactorian
####################################################################################################
# phpMyAdmin
####################################################################################################
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
volumes:
- .docker/phpmyadmin/sessions:/sessions
####################################################################################################
# Adminer
####################################################################################################
adminer:
image: adminer
ports:
- 9090:8080
depends_on:
- db
####################################################################################################
# Mailpit
####################################################################################################
mail:
image: axllent/mailpit:latest
ports:
- 8025:8025
- 1025:1025
####################################################################################################
# Redis
####################################################################################################
redis:
image: redis:latest
command: redis-server --appendonly yes
volumes:
- .docker/redis/data:/data
ports:
- 6379:6379
# ####################################################################################################
# # DATABASE (MariaDB)
# ####################################################################################################
# db:
# image: mariadb:10.11
# ports:
# - 3306:3306
# volumes:
# - .docker/db/data:/var/lib/mysql
# - .docker/logs:/var/log/mysql
# - .docker/db/my.cnf:/etc/mysql/conf.d/my.cnf
# - .docker/db/sql:/docker-entrypoint-initdb.d
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: laravel_db_name
# MYSQL_USER: laravel_db_user
# MYSQL_PASSWORD: laravel_db_pass
####################################################################################################
# PostgreSQL
####################################################################################################
# db:
# image: postgres:16
# ports:
# - 5432:5432
# volumes:
# - .docker/db/data:/var/lib/postgresql/data
# - .docker/db/sql:/docker-entrypoint-initdb.d
# environment:
# - POSTGRES_USER=refactorian
# - POSTGRES_PASSWORD=refactorian
# - POSTGRES_DB=refactorian
####################################################################################################
# pgAdmin
####################################################################################################
# pgadmin:
# image: dpage/pgadmin4
# ports:
# - 5050:80
# environment:
# - PGADMIN_DEFAULT_EMAIL=admin@admin.com
# - PGADMIN_DEFAULT_PASSWORD=password
# depends_on:
# - db
npm:
image : node:22.17.0
container_name : test_npm
volumes:
- .:/var/www
working_dir: /var/www
entrypoint: ["npm"]
composer:
image: composer:latest
container_name: test_composer
volumes:
- .:/var/www
working_dir: /var/www
command: ["install","--ignore-platform-reqs"]
depends_on:
- php
# artisan:
# build:
# context: .
# dockerfile: .docker/php/Dockerfile
# container_name: test_artisan
# volumes:
# - .:/var/www
# working_dir: /var/www
# entrypoint: ["php", "artisan"]