forked from stevenliebregt/docker-compose-lemp-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.25 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
version: '3'
services:
php:
# image: 'php:7.2-fpm'
build:
context: ./docker
dockerfile: php.Dockerfile
container_name: ${APP_NAME:?err}-php
volumes:
- './app:/var/www/html'
network_mode: host
# depends_on:
# - mariadb
labels:
- "com.centurylinklabs.watchtower.enable=true"
nginx:
image: nginx:latest
container_name: ${APP_NAME:?err}-nginx
ports:
- '80:80'
- '443:443'
#links:
# - 'php'
depends_on:
- php
network_mode: host
volumes:
- './app:/var/www/html'
- getssl_data:/mnt/letsencrypt
- nginx_data:/mnt/nginx
- /var/lib/docker/volumes/nginx_data/_data/conf.d:/etc/nginx/conf.d
labels:
- "com.centurylinklabs.watchtower.enable=true"
restart: unless-stopped
# mariadb:
# image: mariadb:10.3.9
# container_name: ${APP_NAME:?err}-mariadb
# restart: 'on-failure'
# environment:
# MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?err}
# volumes:
# - ${PWD}
volumes:
getssl_data:
external: true
nginx_data:
external: true