-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (54 loc) · 1.43 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
50
51
52
53
54
55
56
57
58
59
60
version: '3.7'
services:
web:
container_name: web
hostname: web
build:
context: ./web
dockerfile: Dockerfile
restart: always
depends_on:
- db
volumes:
- ./web/html:/var/www/html
ports:
- 80:80
networks:
- db-network
- web-network
db:
container_name: db
hostname: db
image: mariadb:lts
restart: always
environment:
MYSQL_ROOT_PASSWORD: R00tP4ssw0rd #Config your own root password.
MYSQL_USER: hw_user #Config your own user. This needs to be the same like html/config/config.php $user.
MYSQL_PASSWORD: hw_password #Config your own password. This needs to be the same like html/config/config.php $pass.
MYSQL_DATABASE: homeweather
volumes:
- db-data:/var/lib/mysql
networks:
- db-network
pma:
container_name: pma
hostname: pma
image: phpmyadmin:5.2.1-fpm-alpine
restart: always
depends_on:
- db
ports:
- 8080:80
networks:
- db-network
- web-network
volumes:
db-data:
name: homeweather-db-data
networks:
web-network:
name: homeweather-web-network
driver: bridge
db-network:
name: homeweather-db-network
driver: bridge