-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (53 loc) · 1.43 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
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.7'
services:
cli:
build:
context: .
dockerfile: docker/build/php/Dockerfile
profiles: ['cli']
container_name: php-cli
init: true
networks:
- localdev
working_dir: /app/
volumes:
- ./docker/config/php/php.ini:/usr/local/etc/php/php.ini
- ./docker/config/php/conf.d/extension.ini:/usr/local/etc/php/conf.d/extension.ini
- ./docker/config/bash/bashrc-docker:/root/.bashrc
- ./docker/config/bash/bash_history:/root/.bash_history
- ./:/app/
environment:
- TERM=xterm-256color
stdin_open: true # docker run -i
tty: true # docker run -t
command: /bin/bash
clix:
build:
args:
- XDEBUG_MODE=debug
context: .
dockerfile: docker/build/php/Dockerfile
profiles: ['clix']
container_name: php-clix
init: true
networks:
- localdev
working_dir: /app/
volumes:
- ./docker/config/php/php.ini:/usr/local/etc/php/php.ini
- ./docker/config/php/conf.d/extension.ini:/usr/local/etc/php/conf.d/extension.ini
- ./docker/config/bash/bashrc-docker:/root/.bashrc
- ./docker/config/bash/bash_history:/root/.bash_history
- ./:/app/
environment:
- TERM=xterm-256color
- XDEBUG_MODE=debug
stdin_open: true # docker run -i
tty: true # docker run -t
command: /bin/bash
expose:
- 9000
- 9003
networks:
localdev:
driver: bridge