-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (44 loc) · 982 Bytes
/
docker-compose.yaml
File metadata and controls
48 lines (44 loc) · 982 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
38
39
40
41
42
43
44
45
46
47
48
version: '3.7'
services:
php:
container_name: test-issue-php
user: 1000:1000
build:
context: ./docker/app
volumes:
- .:/var/www/app
environment:
COMPOSER_MEMORY_LIMIT: -1
APP_ENV: 'dev'
ports:
- 8080:8080
links:
- database
nginx:
container_name: test-issue-nginx
image: nginx:latest
ports:
- 80:80
volumes:
- ./public:/static
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
links:
- php
database:
container_name: test-issue-db
image: mysql:5.7
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: mysql
MYSQL_DATABASE: slim_project
MYSQL_USER: webmaster
MYSQL_PASSWORD: webmaster
database-test:
container_name: test-issue-db-test
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: mysql
MYSQL_DATABASE: slim_project_test
MYSQL_USER: webmaster
MYSQL_PASSWORD: webmaster