forked from geodesicsolutions-community/geocore-community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.01 KB
/
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
41
42
43
44
version: "3.1"
services:
web:
# we want to use the image which is build from our Dockerfile
build: .
ports:
- "8080:80"
# we depending on the mariadb backend
depends_on:
- db
# we mount the working dir into the container, handy for development
volumes:
- .:/var/www/html/
- ./contrib/docker/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
web-php8:
build:
context: .
dockerfile: Dockerfile.php8
ports:
- "8081:80"
depends_on:
- db
volumes:
- .:/var/www/html/
- ./contrib/docker/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
db:
image: mariadb
restart: always
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MYSQL_DATABASE: geocore-community
MYSQL_USER: geocore-community
MYSQL_PASSWORD: geocore-community
ports:
- "8089:3306"
# Set up easy way to admin mysql
adminer:
image: adminer
restart: always
ports:
- 8083:8080