-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
38 lines (38 loc) · 1.04 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
version: "3"
services:
web:
image: nginx:latest
container_name: nginx-samos
restart: always
environment:
- VIRTUAL_HOST=www.samosrentals.rambou.gr,samosrentals.rambou.gr
- LETSENCRYPT_HOST=www.samosrentals.rambou.gr,samosrentals.rambou.gr
- LETSENCRYPT_EMAIL=admin@rambou.gr
#ports:
# - "8080:80"
volumes:
- .:/code
- ./site.conf:/etc/nginx/conf.d/default.conf
links:
- php
php:
build: .
#image: php:7-fpm
container_name: php7_fpm
volumes:
- .:/code
# - ./log.conf:/usr/local/etc/php-fpm.d/zz-log.conf
restart: always
links:
- database
database:
image: mysql:5.7
container_name: mysql
restart: always
volumes:
- ./database:/var/lib/mysql
command: '--default-authentication-plugin=mysql_native_password --lower_case_table_names=1'
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: root
MYSQL_DATABASE: samosrentals