-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-ci.yml
44 lines (40 loc) · 1023 Bytes
/
docker-compose-ci.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"
services:
database:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./docker/database/init:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-!ChangeMe!}
MYSQL_DATABASE: ${MYSQL_DATABASE:-app}
MYSQL_USER: ${MYSQL_USER:-app}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-!ChangeMe!}
ports:
- 3306:3306
php-fpm:
container_name: php-fpm-ci
image: mechemsi/bgr-fpm-ci:3
depends_on:
- database
volumes:
- ./:/var/www
environment:
APP_ENV: ${APP_ENV}
APP_SECRET: ${APP_SECRET}
nginx:
build:
context: ./docker/nginx
volumes:
- ./:/var/www
- ./docker/nginx/sites/:/etc/nginx/sites-available
- ./docker/nginx/conf.d/:/etc/nginx/conf.d
depends_on:
- php-fpm
ports:
- "80:80"
- "443:443"
redis:
image: redis:latest
ports:
- "127.0.0.1:${HOST_MACHINE_REDIS_PORT:-6379}:6379"