-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1.1 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
version: "3.8"
services:
app:
container_name: contenedor-app
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./:/var/www/html
depends_on:
- db
- phpmyadmin
networks:
- lion
db:
image: mysql
container_name: contenedor-mysql
restart: unless-stopped
environment:
MYSQL_DATABASE: users
MYSQL_PASSWORD: lion
MYSQL_ROOT_PASSWORD: lion
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
networks:
- lion
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: contenedor-phpmyadmin
restart: unless-stopped
links:
- db:db
ports:
- 8080:80
environment:
MYSQL_USER: root
MYSQL_PASSWORD: lion
MYSQL_ROOT_PASSWORD: lion
networks:
- lion
volumes:
mysql_data:
networks:
lion:
driver: bridge