-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (60 loc) · 1.37 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
version: "3.5"
services:
db:
image: mariadb:latest
platform: linux/amd64
restart: always
env_file:
- '.env'
ports:
- 33060:3306
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_DATABASE: 'portal'
networks:
- default
volumes:
- database-data:/var/lib/mysql
# The main php application
portal:
depends_on:
- db
- redis
- mailcatcher
networks:
- default
build:
context: .
dockerfile: ./docker/Dockerfile
ports:
- 8081:80
volumes:
- .:/var/www/html
user: ${USERID}
redis:
image: redis:5.0-alpine
ports:
- "6379:6379"
networks:
- default
mailcatcher:
image: "jeanberu/mailcatcher"
networks:
- default
ports:
- "1025:1025"
- "1080:1080"
selenium-hub:
image: selenium/hub:3.12.0-americium
container_name: selenium-hub
ports:
- "4444:4444"
chrome:
image: selenium/node-chrome:3.12.0-americium
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
volumes:
database-data: