forked from gregstoll/gallery2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (37 loc) · 864 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (37 loc) · 864 Bytes
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
services:
web:
image: nginx:latest
ports:
- "10000:8000"
volumes:
- ./docker/nginx.conf:/etc/nginx/conf.d/nginx.conf
- .:/app
links:
- php
php:
ports:
- "11000:9000"
build:
context: .
dockerfile: docker/PHP.Dockerfile
target: php_${PHP_TARGET:-base}
environment:
PHP_IDE_CONFIG: "serverName=docker"
volumes:
- .:/app
- ./gallery2-data:/gallery2-data
- ./docker/php.ini:/usr/local/etc/php/conf.d/custom.ini
- ./docker/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
links:
- mysql
mysql:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: 'secret'
MYSQL_USER: 'gallery'
MYSQL_PASSWORD: 'secret'
MYSQL_DATABASE: 'gallery2'
volumes:
- ./mysqldata:/var/lib/mysql
ports:
- "13306:3306"