-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
43 lines (43 loc) · 1.04 KB
/
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
42
43
version: '3.6'
services:
sc-nginx:
build:
context: ./docker/development
dockerfile: nginx.docker
depends_on:
- sc-php-fpm
ports:
- "8081:80"
volumes:
- .:/app:cached
sc-php-fpm:
build:
context: ./docker/development
dockerfile: php-fpm.docker
volumes:
- .:/app:cached
depends_on:
- sc-mysql
sc-php-cli:
build:
context: ./docker/development
dockerfile: php-cli.docker
volumes:
- .:/app:cached
- composer:/root/.composer/cache
depends_on:
- sc-mysql
sc-mysql:
image: mysql:5.7
volumes:
- sc-mysql:/var/lib/postgresql/data:cached
environment:
MYSQL_ROOT_PASSWORD: sc-root-pass
MYSQL_USER: sc-user
MYSQL_PASSWORD: sc-pass
MYSQL_DATABASE: sc-db
ports:
- '33061:3306'
volumes:
sc-mysql:
composer: