-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (37 loc) · 995 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
41
version: '2'
services:
mariadb:
image: 'bitnami/mariadb:latest'
labels:
kompose.service.type: nodeport
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=my_user
- MARIADB_DATABASE=my_database
- MARIADB_PASSWORD=my_password
networks:
- app-tier
volumes:
- db-data:/bitnami
ports:
- '3306:3306'
nginx-php-fpm:
image: richarvey/nginx-php-fpm:latest
restart: always
depends_on:
- mariadb
networks:
- app-tier
volumes:
- ./public/:/var/www/html
- ./config/php.ini:/usr/local/etc/php/conf.d/docker-vars.ini
- ./config/php-fpm.conf:/usr/local/etc/php-fpm.d/php-fpm.conf
- ./config/nginx.conf:/etc/nginx/sites-available/default.conf
ports:
- '80:80'
networks:
app-tier:
driver: bridge
volumes:
db-data: