-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.26 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.26 KB
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
version: "3.2"
services:
php:
build: './php/'
restart: always
networks:
- backend
volumes:
- /root/web-hosting/website1.com/public_html:/var/www/www.website1.com
- /root/web-hosting/website2.com/public_html:/var/www/www.website2.com
- /root/web-hosting/certbot/docker-volumes/etc/letsencrypt:/etc/letsencrypt
apache:
build: './apache/'
restart: always
depends_on:
- php
- mariadb
networks:
- frontend
- backend
ports:
- "80:80"
- "443:443"
volumes:
- /root/web-hosting/website1.com/public_html:/var/www/www.website1.com.com
- /root/web-hosting/website2.com/public_html:/var/www/www.website2.com
- /root/web-hosting/certbot/docker-volumes/etc/letsencrypt:/etc/letsencrypt
mariadb:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: docker
ports:
- 3306:3306
expose:
- "3306"
networks:
- backend
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
depends_on:
- mariadb
ports:
- 8181:80
environment:
- PMA_ARBITRARY=1
- PMA_HOST=mariadb
- UPLOAD_LIMIT=3000000000
networks:
- backend
- frontend
networks:
frontend:
backend: