-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
59 lines (53 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
53
54
55
56
57
58
59
# $Id: docker-compose.yml v.0.5 $ $Date: 2018/04/28 $ $Author: Filippo 'joeyrs' Civiletti <[email protected]> $
# $Id: docker-compose.yml v.0.5 $ $Date: 2018/04/28 $ $Author: GB 'gionniboy' Pullarà <[email protected]> $
# Docker-compose -- Build LEMP stack based on docker containers.
version: "3.7"
services:
nginx:
image: nginx:1.25-alpine
container_name: alpazzo-nginx
environment:
- TERM=xterm-256color
links:
- php
networks:
- alpazzo
ports:
- "80:80"
- "443:443"
restart: unless-stopped
volumes:
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
- ./public:/var/www/html
depends_on:
- mariadb
php:
build:
context: .
dockerfile: Dockerfile
container_name: alpazzo-php
environment:
- TERM=xterm-256color
networks:
- alpazzo
restart: unless-stopped
volumes:
- ./public:/var/www/html
depends_on:
- mariadb
mariadb:
image: mariadb:11
container_name: alpazzo-mariadb
environment:
- "MYSQL_ROOT_PASSWORD=password"
- "TERM=xterm-256color"
networks:
- alpazzo
ports:
- "3306:3306"
restart: unless-stopped
# volumes:
# - ./database:/var/lib/mysql
# Build diretives for Docker Network Bridging
networks:
alpazzo: