-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 1020 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 1020 Bytes
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
version: "3.3"
services:
postgres: # Por convención se nombra con el mismo nombre que la imagen que usas.
image: postgres:13 # Imagen con versión
environment: # Variables de entorno
POSTGRES_DB: "my-ecommerce-db"
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "root"
ports:
- 5432:5432 # Este puerto lo usa por defecto postgresql
volumes: # Los volumes permiten persistir info de los contenedores.
- ./postgres_data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=admin@mail.com
- PGADMIN_DEFAULT_PASSWORD=root
ports:
- 5050:80
mysql:
image: mysql:5
environment:
MYSQL_DATABASE: "my-ecommerce-db"
MYSQL_ROOT_PASSWORD: "root"
MYSQL_PORT: 3306
ports:
- 3306:3306
volumes:
- ./mysql_data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- MYSQL_ROOT_PASSWORD=root
- PMA_HOST=mysql
ports:
- 8080:80