File tree Expand file tree Collapse file tree 5 files changed +11
-87
lines changed Expand file tree Collapse file tree 5 files changed +11
-87
lines changed Original file line number Diff line number Diff line change @@ -2,30 +2,19 @@ version: '3.7'
2
2
3
3
services :
4
4
backend :
5
- build :
6
- context : .
5
+ image : nxtbn/nxtbn:latest
6
+ container_name : nxtbn_backend
7
+ ports :
8
+ - " 8000:8000"
9
+ # environment:
10
+ # DATABASE_NAME: ${DATABASE_NAME}
11
+ # DATABASE_USER: ${DATABASE_USER}
12
+ # DATABASE_PASSWORD: ${DATABASE_PASSWORD}
13
+ # DATABASE_HOST: ${DATABASE_HOST}
14
+ # DATABASE_PORT: ${DATABASE_PORT}
7
15
volumes :
8
16
- static_data:/backend/staticfiles
9
- - " ./dist/media:/backend/media" # map to local machine
10
- env_file : # if .env in root, we have to show .env here must
11
- - ./.env
12
- # depends_on:
13
- # - db
17
+ - " ./dist/media:/backend/media"
14
18
15
- proxy :
16
- build :
17
- context : ./proxy
18
- volumes :
19
- - static_data:/backend/staticfiles
20
- - " ./dist/media:/backend/media" # map to local machine
21
- ports :
22
- - " 80:80"
23
- env_file : # if .env in root, we have to show .env here must
24
- - ./.env
25
- depends_on :
26
- - backend
27
- # - db
28
-
29
19
volumes :
30
20
static_data :
31
- # database:
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- # Wait for database running:
6
- sleep 5
7
- while [[ $( nc -z $db_host 5432 & > /dev/null; echo $? ) -ne 0 ]]; do echo pod is not running; sleep 3; done
8
-
9
5
python manage.py migrate
10
- python manage.py collectstatic --noinput
11
6
12
7
gunicorn nxtbn.wsgi:application --bind :8000
You can’t perform that action at this time.
0 commit comments