-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.test.yml
46 lines (45 loc) · 1.12 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
version: '3'
services:
postgres:
image: postgres:11
volumes:
- ./compose/postgres:/var/lib/postgresql/data
email:
image: djfarrelly/maildev
ports:
- 1080:80
learning-circles:
build: .
image: p2pu/learning-circles:local
links:
- selenium
volumes:
- .:/opt/app
depends_on:
- postgres
- email
- selenium
command: /opt/django-venv/bin/python manage.py test
environment:
- DATABASE_URL=postgres://lc:password@postgres:5432/lc
- SECRET_KEY=321
- BROKER_URL=amqp://guest:guest@rabbitmq//
- EMAIL_HOST=email
- ADMIN_EMAIL=admin@localhost
- DEBUG=true
- RECAPTCHA_SITE_KEY=6Le0DW8bAAAAAJUHXcKkkASxZWMIwDypy1DiBBEX
frontend:
image: node:lts-slim
volumes:
- .:/opt/app
working_dir: /opt/app
command: sh -c "npm i && npm run watch"
selenium:
#image: selenium/standalone-chrome-debug:3.7.1
#image: selenium/standalone-chrome:3.141.59-20210929
image: selenium/standalone-chrome:4.0.0-20211102
shm_size: 2gb
ports:
- 5900:5900