-
Notifications
You must be signed in to change notification settings - Fork 61
/
compose-test-ci.yaml
51 lines (47 loc) · 1.65 KB
/
compose-test-ci.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
41
42
43
44
45
46
47
48
49
50
51
services:
laravel: &laravel-template
image: ${COMPOSE_PROJECT_NAME}-laravel:latest
build:
context: .
args:
BUILD_ARGUMENT_ENV: test
HOST_UID: ${HOST_UID}
HOST_GID: ${HOST_GID}
XDEBUG_CONFIG: ${XDEBUG_CONFIG}
XDEBUG_VERSION: ${XDEBUG_VERSION}
dockerfile: ./Dockerfile
container_name: ${COMPOSE_PROJECT_NAME}-laravel
volumes:
- ./.git:/var/www/html/.git:cached
- ./reports:/var/www/html/reports:delegated
ports:
- "${WEB_PORT_HTTP}:80"
- "${WEB_PORT_SSL}:443"
depends_on:
- mysql
networks:
- laravel
### Cron tasks
supervisord:
<<: *laravel-template
container_name: ${COMPOSE_PROJECT_NAME}-supervisord
ports: [ ]
command: [ "/usr/bin/supervisord" ]
mysql:
image: mysql:${MYSQL_VERSION}
platform: linux/x86_64
container_name: ${COMPOSE_PROJECT_NAME}-mysql
command: --innodb-use-native-aio=${INNODB_USE_NATIVE_AIO:-1} --sql_mode=${SQL_MODE:-"ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"}
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: laravel
ports:
- "${MYSQL_PORT}:3306"
volumes:
- ./storage/mysql-data:/var/lib/mysql:delegated
- ./docker/dev/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
networks:
- laravel
networks:
laravel:
name: laravel