-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (76 loc) · 1.73 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: "3.9"
networks:
docker.network:
driver: bridge
services:
php:
build: ./docker/php
restart: unless-stopped
container_name: docker.php
tty: true
depends_on:
- mysql
networks:
- docker.network
volumes:
- .:/var/www
apache:
build: ./docker/apache
restart: unless-stopped
container_name: docker.apache
tty: true
depends_on:
- php
ports:
- "80:80"
- "443:443"
networks:
- docker.network
volumes:
- ./html/your_file:/var/www/html/
- ./docker/apache/ssl/your_certificate.crt:/etc/ssl/certs/mycert.crt
- ./docker/apache/ssl/your_key.key:/etc/ssl/private/mycert.key
mysql:
image: arm64v8/mysql:latest
platform: linux/arm64
restart: unless-stopped
container_name: docker.mysql
tty: true
ports:
- "3306:3306"
networks:
- docker.network
volumes:
- "./docker/mysql/dbdata:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-root}
MYSQL_USER: ${MYSQL_USER:-localhost}
phpmyadmin:
image: phpmyadmin
container_name: docker.phpmyadmin
tty: true
depends_on:
- mysql
ports:
- "8080:80"
networks:
- docker.network
environment:
PMA_HOST: mysql
PMA_ARBITRARY: 1
PMA_PORT: 3306
grafana:
image: grafana/grafana:latest
container_name: docker.grafana
depends_on:
- mysql
ports:
- "3000:3000"
networks:
- docker.network
volumes:
- ./docker/graphana_data:/var/lib/grafana
environment:
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASSWORD:-admin}
GF_USERS_ALLOW_SIGN_UP: "false"