-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.03 KB
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.7'
services:
mariadb:
container_name: mariadb.php-docker
environment:
MYSQL_DATABASE: app
MYSQL_USER: app
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: password
image: mariadb:latest
ports:
- "3306:3306"
restart: unless-stopped
tty: true
user: "1000:1000"
volumes:
- ./mariadb/:/var/lib/mysql/
nginx:
container_name: nginx.php-docker
image: nginx:alpine
ports:
- "80:80"
- "443:443"
restart: unless-stopped
tty: true
volumes:
- ./src/:/var/www/
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/php-fpm.conf:/etc/nginx/php-fpm.conf
- ./nginx/server-ssl.conf:/etc/nginx/server.conf
- ./nginx/ssl/:/etc/nginx/ssl/
- ./nginx/log/:/var/log/nginx/
php:
build:
context: .
dockerfile: Dockerfile
container_name: php.php-docker
image: mccheesy/php
restart: unless-stopped
tty: true
user: "1000:1000"
volumes:
- ./src/:/var/www/
working_dir: /var/www