forked from systemsdk/docker-nginx-php-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test-ci.yml
67 lines (62 loc) · 1.46 KB
/
docker-compose-test-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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3'
services:
nginx:
image: nginx:latest
build:
context: .
args:
- "BUILD_ARGUMENT_ENV=test"
dockerfile: ./docker/nginx/Dockerfile
container_name: nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- .:/var/www/html:ro
depends_on:
- laravel
links:
- laravel
laravel:
image: laravel:latest
build:
context: .
args:
- "BUILD_ARGUMENT_ENV=test"
- "BUILD_ARGUMENT_DEBUG_ENABLED=false"
dockerfile: ./Dockerfile
container_name: laravel
expose:
- "9000"
depends_on:
- mysql
links:
- mysql
supervisord:
image: laravel:latest
build:
context: .
args:
- "BUILD_ARGUMENT_ENV=test"
- "BUILD_ARGUMENT_DEBUG_ENABLED=false"
dockerfile: ./Dockerfile
container_name: supervisord
user: root
depends_on:
- mysql
links:
- mysql
command: ["/usr/bin/supervisord"]
mysql:
image: mysql:8.0
container_name: mysql
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=laravel
ports:
- "33061:3306"
volumes:
- ./storage/mysql-data:/var/lib/mysql
- ./docker/dev/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql