-
Notifications
You must be signed in to change notification settings - Fork 0
/
zzNotes.txt
45 lines (36 loc) · 1.73 KB
/
zzNotes.txt
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
# Deploying Django with Docker Compose AWS EC2
__________________________________________________________
----------------------------------------------------------
# command for changes in Dockerfile
----------------------------------------------------------
docker-compose build
----------------------------------------------------------
# command for run server
----------------------------------------------------------
docker-compose up
----------------------------------------------------------
# command for django
----------------------------------------------------------
docker-compose run --rm app sh -c "django-admin startproject project_name ."
docker-compose run --rm app sh -c "python manage.py startapp app_name"
docker-compose run --rm app sh -c "python manage.py makemigrations"
docker-compose run --rm app sh -c "python manage.py createsuperuser"
----------------------------------------------------------
# command for file '-f'
----------------------------------------------------------
docker-compose -f docker-compose-deploy.yml down --volumes
docker-compose -f docker-compose-deploy.yml build
docker-compose -f docker-compose-deploy.yml up
__________________________________________________________
# ERROR
postgreSQL not connected
Error: Database is uninitialized and superuser password is not specified.
| You must specify POSTGRES_PASSWORD to a non-empty value for the
| superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
|
| You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
| connections without a password. This is *not* recommended.
|
| See PostgreSQL documentation about "trust":
| https://www.postgresql.org/docs/current/auth-trust.html
- Waiting for database...