forked from PowerUpWithPride/donation-tracker-toplevel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (48 loc) · 1.5 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
version: "3.7"
services:
app:
# image: "esamarathon/tracker:latest"
build:
context: .
dockerfile: Dockerfile
stdin_open: true # docker run -i
tty: true # docker run -t
# entrypoint: /bin/bash
volumes:
- "./db:/app/tracker_development/db"
- "./blank.json:/app/tracker_development/blank.json"
# - "./tracker/:/app/tracker_development/donation-tracker/"
- "./local.py:/app/tracker_development/tracker_development/local.py"
- "static:/var/www/html/static:rw"
environment:
- TRACKER_ALLOWED_HOSTS="localhost, esatracker.eu.ngrok.io"
- TRACKER_DOMAIN="localhost"
- TRACKER_DEBUG=True
# - TRACKER_DATABASES='{"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": "db/testdb"}}'
- TRACKER_TIME_ZONE="Europe/Amsterdam"
- TRACKER_SITE_NAME="ESA Dev Tracker"
- TRACKER_SITE_PREFIX="/"
- TRACKER_SECRET_KEY="HAhAHAHhahahahhahahhahahhahahahahha"
- TRACKER_STATIC_URL="/static"
- TRACKER_STATIC_ROOT="/var/www/html/static"
- TRACKER_HAS_GDOC=False
- TRACKER_HAS_EMAIL=False
- TRACKER_USE_NEW_DONATE_LAYOUT=False
ports:
- "8000:8000"
web:
image: nginx:latest
volumes:
- "static:/var/www/html/static/:ro"
- "./nginx_dev.conf:/etc/nginx/nginx.conf:ro"
ports:
- "8080:80"
depends_on:
- app
volumes:
static:
driver: local
driver_opts:
o: bind
type: none
device: /coding/bsg/donation-tracker-toplevel/static_data