-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (41 loc) · 831 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (41 loc) · 831 Bytes
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
version: '2'
volumes:
dbdata: {}
services:
nginx:
image: nginx:1.16.0
container_name: docker-lemp_nginx
ports:
- 80:80
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
volumes_from:
- php
networks:
- dockernet
php:
build: ./docker/php/
container_name: docker-lemp_php
user: "${UID}:${GID}"
expose:
- 9000
volumes:
- ./www:/var/www/html:cached
- ./docker/php/config/php.ini:/usr/local/etc/php/php.ini
networks:
- dockernet
mariadb:
image: mariadb:latest
container_name: docker-lemp_mariadb
expose:
- 3306
ports:
- 3306:3306
volumes:
- dbdata:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 123456
networks:
- dockernet
networks:
dockernet: