-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose-test.yml
56 lines (51 loc) · 1.23 KB
/
docker-compose-test.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:
selenium-chrome:
image: selenium/standalone-chrome:latest
ports:
- 4444:4444
- 7900:7900
shm_size: 2gb
selenium-edge:
image: selenium/standalone-edge:latest
ports:
- 4445:4444
- 7901:7900
shm_size: 2gb
selenium-firefox:
image: selenium/standalone-firefox:latest
ports:
- 4446:4444
- 7902:7900
shm_size: 2gb
## Starts up mySQL server for ubyssey.ca and Dispatch
db:
platform: linux/x86_64
image: mysql:8.0
volumes:
- database:/var/lib/mysql
- ./my_custom.cnf:/etc/mysql/conf.d/my_custom.cnf
environment:
MYSQL_ROOT_PASSWORD: ubyssey
MYSQL_DATABASE: ubyssey
ports:
- "3307:3306"
healthcheck:
test: "/usr/bin/mysql --user=root --password=ubyssey --execute \"SHOW DATABASES;\""
interval: 2s
timeout: 20s
retries: 20
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
# web:
# build: .
# command: python manage.py runserver 0.0.0.0:8000
# volumes:
# - .:/code
# ports:
# - "8000:8000"
# depends_on:
# - db
volumes:
database:
external:
name: ubyssey_db_volume