-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
40 lines (36 loc) · 1.15 KB
/
docker-compose.yaml
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.7'
services:
workspace:
image: 'rushlowdev/php:latest-8.1-cli'
volumes:
- ./:/var/htdocs
tty: true
php-cli:
build:
context: ./.docker/php-cli
volumes:
- ./:/var/htdocs
php-fpm:
image: 'rushlowdev/php:latest-8.1-fpm'
volumes:
- ./:/var/htdocs
nginx:
image: 'rushlowdev/nginx:alpine'
volumes:
- ./public:/var/htdocs/public
depends_on:
- php-fpm
ports:
- "80:80"
- "443:443"
database:
image: 'mariadb:latest'
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: main
ports:
# To allow the host machine to access the ports below, modify the lines below.
# For example, to allow the host to connect to port 3306 on the container, you would change
# "3306" to "3306:3306". Where the first port is exposed to the host and the second is the container port.
# See https://docs.docker.com/compose/compose-file/#ports for more information.
- '3306:3306'