-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (37 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
version: '3'
services:
nginx:
image: nginx:alpine
container_name: webshop_nginx
ports:
- 80:80
volumes:
- ./:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- mysql
php:
image: php:7.4-fpm
container_name: webshop_php
build:
context: docker/php
ports:
- 9000:9000
volumes:
- ./:/var/www/html
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
mysql:
image: mysql:5.7
container_name: webshop_mysql
ports:
- 3306:3306
depends_on:
- php
volumes:
- ./sql/dump.sql:/docker-entrypoint-initdb.d/dump.sql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: webshop_db
MYSQL_USER: admin
MYSQL_PASSWORD: admin