-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 918 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 918 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
47
48
49
version: '3'
services:
web:
build:
context: .
dockerfile: ./containers/nginx/Dockerfile
container_name: websvr_nginx
volumes:
- ./data/certbot/conf:/etc/letsencrypt
restart: always
ports:
- "80:80"
- "443:443"
depends_on:
- php
networks:
- docker-lemp
php:
build:
context: .
dockerfile: ./containers/php/Dockerfile
container_name: php_fpm
restart: always
depends_on:
- mysql
networks:
- docker-lemp
mysql:
build:
context: .
dockerfile: ./containers/mysql/Dockerfile
container_name: database
restart: always
environment:
MYSQL_ROOT_PASSWORD: pass
volumes:
- db:/var/lib/mysql
networks:
- docker-lemp
networks:
docker-lemp:
driver: bridge
volumes:
db: