-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (47 loc) · 1.12 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
version: "3.7"
#networks:
# hdts_net:
# external: true
# name: hdts_net
# default:
# driver: bridge
services:
db:
container_name: mongo
image: mongo:latest
restart: always
# networks:
# - hdts_net
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: $DB_USERNAME
MONGO_INITDB_ROOT_PASSWORD: $DB_PASSWORD
volumes:
- $DOCKERDIR/mongo:/database
hdts:
container_name: hdts
image: hdts
tty: true
stdin_open: true
depends_on:
- db
restart: unless-stopped
# networks:
# - hdts_net
ports:
- "$HDTS_PORT:8000"
environment:
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1
- DB_USERNAME=$DB_USERNAME
- DB_PASSWORD=$DB_PASSWORD
- DB_NAME=$DB_NAME
- HOST=db
- PORT=$PORT
- SECRET_KEY=$SECRET_KEY
- ALLOWED_HOSTS=$ALLOWED_HOSTS
- CSRF_TRUSTED_ORIGINS=$CSRF_TRUSTED_ORIGINS
volumes:
- $DOCKERDIR/hdts:/storage
#command: ["python","Django/manage.py","createsuperuser", "--username=admin","--first_name=admin","[email protected]"]