forked from platzi/curso-nodejs-postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (38 loc) · 931 Bytes
/
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
version: '3.8'
services:
postgres:
image: postgres
restart: always
environment:
- POSTGRES_DB=my_store
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
ports:
- 5432:5432
volumes:
- ./postgres_data:/var/lib/postgres/data
pgadmin:
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- 5050:80
mysql:
image: mysql:5
environment:
- MYSQL_DATABASE=my_store
- MYSQL_USER=root
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_PORT=3306
ports:
- 3306:3306
volumes:
- ./mysql_data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- MYSQL_ROOT_PASSWORD=admin
- PMA_HOST=mysql
ports:
- 8080:80