forked from erdem/django-map-widgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 1.08 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
version: "2"
services:
django:
build:
context: .
dockerfile: Dockerfile
image: mapwidgets
container_name: django_mapwidgets
environment:
- SELENIUM_HOST=http://selenium:4444/wd/hub
- TEST_SELENIUM='yes'
- SITE_DOMAIN=django
- DJANGO_LIVE_TEST_SERVER_ADDRESS=django:8081
command: tail -f /bin/bash # Added for not to kill container.
ports:
- "8000:8000"
- "8001:8001"
- "8081:8081"
links:
- postgres
volumes:
- ".:/django-map-widgets"
depends_on:
- postgres
working_dir: /django-map-widgets
postgres:
image: mdillon/postgis
container_name: mapwidget_postgres
environment:
- POSTGRES_DB=mapwidget_db
- POSTGRES_USER=mapwidgetdbu
- POSTGRES_PASSWORD=mapwidgetdbu
volumes:
- "./data/db:/var/lib/postgresql/data"
# selenium:
# image: selenium/standalone-chrome-debug:3.3.0
# container_name: mapwidget_selenium
# environment:
# - HUB_ENV_no_proxy=localhost
# - no_proxy=localhost
# ports:
# - "4444:4444"
# - "5900:5900"