/
docker-compose.yml
55 lines (51 loc) · 1.27 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
version: '3'
services:
www:
container_name: forum-www
build:
context: docker/www/
args:
- XDEBUG_REMOTE_ENABLE=0
- XDEBUG_REMOTE_CONNECT_BACK=0
- XDEBUG_REMOTE_HOST=host.docker.internal
- XDEBUG_REMOTE_PORT=9000
- XDEBUG_IDEKEY=PHPSTORM
- XDEBUG_AUTOSTART=1
- XDEBUG_REMOTE_LOG=
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- .:/var/www/html
- ./docker/apache2:/var/log/apache2
ports:
- 80:80
depends_on:
- mysql
- web_socket
mail:
image: mailhog/mailhog
container_name: forum-mail
ports:
- 8025:8025
- 1025:1025
web_socket:
#use this image for development/release candidate version
# image: ghcr.io/coderscommunity/http-websocket-server:rc
#use this image for production version
image: ghcr.io/coderscommunity/http-websocket-server:latest
env_file:
- web_socket.env
ports:
- 3000:3000
mysql:
image: mysql:5.7.30
container_name: forum-mysql
ports:
- 3306:3306
volumes:
- ./dump/forum.sql:/docker-entrypoint-initdb.d/forum.sql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=forum
- MYSQL_USER=test
- MYSQL_PASSWORD=test