-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (93 loc) · 2.08 KB
/
docker-compose.yml
File metadata and controls
102 lines (93 loc) · 2.08 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3.0"
services:
nginx:
image: sierratecnologia/nginx
restart: always
expose:
- "9000"
ports:
- "83:80"
volumes:
- ./docker/nginx_conf:/etc/nginx/conf.d
- ./:/var/www/html
- /usr/bin/ssh:/usr/bin/ssh
depends_on:
- php
networks:
- outside
- internal
- sdnet
selenium:
image: selenium/standalone-chrome:3.11.0-antimony
depends_on:
- php
- nginx
links:
- php:sdnet.test
- nginx:h3sotospeak.com
- nginx:dev.h3sotospeak.com
volumes:
- /dev/shm:/dev/shm
networks:
- outside
- sdnet
php:
build:
context: ./docker/php/
dockerfile: ./Dockerfile
#command: bash -c "sed -i \"s/memory_limit = 128M/memory_limit = 512M/\" /usr/local/etc/php/php.ini && php-fpm"
command: bash -c "php-fpm"
ports:
- "9000:9000"
environment:
PHP_XDEBUG_ENABLED: 1 # Set 1 to enable.
PHP_IDE_CONFIG: "serverName=docker"
XDEBUG_CONFIG: "remote_host=172.17.0.1"
volumes:
- ./:/var/www/html
# Debian based mapping for certificates.
# - /etc/ssl/certs:/etc/ssl/certs:ro
# - /usr/share/ca-certificates/extra:/usr/share/ca-certificates/extra:ro
# SSH keys
- ~/.ssh:/root/.ssh
- ./docker/logs/xdebug/:/tmp/xdebug_log #Logs for Xdebug
restart: always
depends_on:
- db
networks:
- internal
- sdnet
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
- ./database/dumps:/dumps
environment:
MYSQL_ROOT_PASSWORD: A123456
MYSQL_DATABASE: hoppe
MYSQL_USER: hoppe
MYSQL_PASSWORD: A123456
networks:
- internal
redis:
image: redis:3.0
restart: always
expose:
- "6379"
networks:
- internal
volumes:
# We'll define a volume that will store the data from the databases:
db_data:
driver: local
networks:
outside:
external: true
internal:
driver: bridge
sdnet:
driver: bridge
#logging:
# driver: syslog
# options:
# syslog-address: "tcp://192.168.0.42:123"