-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1.29 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
version: "2"
services:
lemp-nginx:
image: nginx:latest
container_name: lemp-nginx
ports:
- "85:80"
# - "443:443"
volumes:
- ./website:/var/www/html/website:rw # With read / write access
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro # With read-only access
networks:
- lemp-network
links:
- lemp-php
lemp-mariadb:
image: mariadb:latest
container_name: lemp-mariadb
volumes:
- ./lemp-volume-mariadb:/var/lib/mysql
networks:
- lemp-network
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 4813494d137e1631bba301d5acab6e7bb7aa74ce1185d456565ef51d737677b2
lemp-php:
build: ./
container_name: lemp-php
volumes:
- ./website:/var/www/html/website
networks:
- lemp-network
links:
- lemp-mariadb
lemp-phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: lemp-phpmyadmin
networks:
- lemp-network
ports:
- "8183:80"
environment:
PMA_ARBITRARY: 1
links:
- lemp-mariadb
networks:
lemp-network:
driver: bridge