-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (39 loc) · 987 Bytes
/
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
version: "3.9"
services:
nginx:
#build:
#context: .
#dockerfile: ./docker/nginx/Dockerfile
image: nginx:1.27.3
container_name: nginx-container
ports:
- 80:80
volumes:
- ./public/:/var/www/html
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/
- ./logs:/var/log/nginx
php:
image: php:8.2-fpm
container_name: php-container
build:
context: .
dockerfile: ./docker/php/Dockerfile
expose:
- 9000
volumes:
- ./:/var/www/
- ./public/:/var/www/html
# - ./composer.json:/var/www/composer.json
#- ./src/:/var/www/src
#- ./vendor/:/var/www/vendor
mysql:
image: mariadb:latest
container_name: mysql-container
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=betting
- MYSQL_USER=betting
- MYSQL_PASSWORD=betting
volumes:
- './docker/volume/mysql:/var/lib/mysql'
- './dump.sql:/docker-entrypoint-initdb.d/dump.sql'