-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (72 loc) · 1.83 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3.7'
services:
redis:
hostname: dev-redis
container_name: dev-redis
image: bitnami/redis:latest
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_EXTRA_FLAGS=--maxmemory 100mb
networks:
- localdev
volumes:
- redis-store:/bitnami/redis/data
deploy:
resources:
limits:
memory: 500m
cpus: "1.0"
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
volumes:
redis-store:
driver: local
networks:
localdev:
driver: bridge