-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.04 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
version: '3.4'
services:
web:
image: nginx:stable
restart: unless-stopped
volumes:
- ./:/var/www
- ./docker/nginx/site.conf:/etc/nginx/conf.d/site.conf
links:
- php
networks:
- default
ports:
- "80:80"
php:
build: ./docker/php/
container_name: php-nginx
restart: unless-stopped
links:
- db
networks:
- default
volumes:
- ./:/var/www
environment:
HOST_NAME: ${DOMAIN_NAME}
db:
image: mariadb:10.5.19
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- .db:/var/lib/mysql
- ./shared:/dumps
networks:
- default
environment:
MYSQL_DATABASE: 'project'
MYSQL_USER: 'project-user'
MYSQL_PASSWORD: 'root'
MYSQL_ROOT_PASSWORD: 'root'
ports:
- '3306:3306'
networks:
default: