Last active 1733344689

docker-compose.yml Raw
1services:
2 mysql:
3 image: mysql:latest
4 container_name: mysql
5 environment:
6 MYSQL_ROOT_PASSWORD: your_root_password
7 MYSQL_DATABASE: name_database
8 MYSQL_USER: your_user
9 MYSQL_PASSWORD: your_password
10 TZ: Europe/Rome
11 volumes:
12 - /home/debian/database/mysql_data:/var/lib/mysql
13 networks:
14 - npm-internal
15 restart: unless-stopped
16
17 phpmyadmin:
18 image: phpmyadmin/phpmyadmin:latest
19 container_name: phpmyadmin
20 environment:
21 PMA_ARBITRARY: 1
22 PMA_HOST: mysql
23 # ports:
24 # - "8080:80"
25 networks:
26 - npm-internal
27 restart: unless-stopped
28
29volumes:
30 mysql_data:
31
32networks:
33 npm-internal:
34 name: npm-internal
35 external: true