-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
81 lines (74 loc) · 1.55 KB
/
docker-compose.yml.example
File metadata and controls
81 lines (74 loc) · 1.55 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
services:
nginx:
image: nginx:latest
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./nginx:/etc/nginx/conf.d
- ./projects:/var/www/html
networks:
- laravel
mysql:
image: mysql:8.0
container_name: mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: password
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
networks:
- laravel
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
restart: unless-stopped
environment:
PMA_HOST: mysql
PMA_PORT: 3306
UPLOAD_LIMIT: 2000M
MEMORY_LIMIT: 2048M
MAX_EXECUTION_TIME: 600
MAX_INPUT_TIME: 600
ports:
- "8080:80"
networks:
- laravel
mailpit:
image: axllent/mailpit
container_name: mailpit
restart: unless-stopped
ports:
- "8025:8025"
networks:
- laravel
proyecto1:
build:
context: ./php/php83
container_name: proyecto1
restart: unless-stopped
volumes:
- ./projects/proyecto1:/var/www/html/proyecto1
# si debe interactuar con otra app, habilitar network_mode: host
networks:
- laravel
# network_mode: host
node-proyecto1:
build:
context: ./node/node20
container_name: node-proyecto1
restart: unless-stopped
ports:
- "5173:5173"
volumes:
- ./projects/proyecto1:/var/www/html/proyecto1
networks:
- laravel
volumes:
mysql_data:
networks:
laravel:
driver: bridge