mirror of https://github.com/interlegis/sapl.git
Eduardo Edson Batista Cordeiro Alves
9 years ago
committed by
Edward Ribeiro
3 changed files with 10 additions and 4 deletions
@ -1,11 +1,15 @@ |
|||||
db: |
localhost: |
||||
image: postgres |
image: postgres |
||||
|
environment: |
||||
|
POSTGRES_PASSWORD: sapl |
||||
|
POSTGRES_USER: sapl |
||||
|
POSTGRES_DB: sapl |
||||
web: |
web: |
||||
build: . |
build: . |
||||
command: bash -c "python3 manage.py migrate && python3 manage.py bower install && python3 manage.py runserver 0.0.0.0:8000" |
command: bash -c "python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000" |
||||
volumes: |
volumes: |
||||
- .:/sapl |
- .:/sapl |
||||
ports: |
ports: |
||||
- "8000:8000" |
- "8000:8000" |
||||
links: |
links: |
||||
- db |
- localhost |
||||
|
@ -1,2 +1,2 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
pg_restore --disable-triggers --data-only sapl_30-03-16.tar | docker exec -i sapl_db_1 psql -U postgres |
pg_restore --disable-triggers --data-only sapl_30-03-16.tar | docker exec -i sapl_localhost_1 psql -U sapl |
||||
|
Loading…
Reference in new issue