Compare commits
No commits in common. "19764fbf00f8f293c1cb95b9b5f6e4fde6b206b2" and "03a17839bee6e0bc193a1466d33c1541e8a4683f" have entirely different histories.
19764fbf00
...
03a17839be
|
|
@ -2,7 +2,7 @@ version: "2"
|
|||
|
||||
services:
|
||||
web:
|
||||
image: docker.clkl.de/partdoc/web:0.3
|
||||
image: docker.clkl.de/partdoc/web:0.1
|
||||
build: partdoc
|
||||
env_file: postgres.env
|
||||
volumes:
|
||||
|
|
@ -12,10 +12,8 @@ services:
|
|||
command: python3 ./manage.py runserver 0.0.0.0:8000
|
||||
ports:
|
||||
- 8080:8000
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
image: postgres:12-alpine
|
||||
image: postgres:10-alpine
|
||||
volumes:
|
||||
- ./pgdata/:/var/lib/postgresql/data/
|
||||
env_file: postgres.env
|
||||
env_file: postgres.env
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
# start old postgres, dump data
|
||||
sed -i 's/postgres:12-alpine/postgres:10-alpine/' docker-compose.yml
|
||||
docker-compose exec db pg_dumpall -U partdoc > pgdump.tmp
|
||||
# migrate to new postgres, import data
|
||||
docker-compose stop db
|
||||
sed -i 's/postgres:10-alpine/postgres:12-alpine/' docker-compose.yml
|
||||
docker-compose up -d
|
||||
docker-compose exec -T db psql -U partdoc < pgdump.tmp
|
||||
docker-compose down
|
||||
docker-compose up -d
|
||||
rm pgdump.tmp
|
||||
|
|
@ -1,8 +1,6 @@
|
|||
FROM alpine:3.10
|
||||
FROM alpine:3.7
|
||||
|
||||
ADD requirements.txt /
|
||||
RUN apk add --update --no-cache python3 py3-psycopg2 && \
|
||||
sed -i 's/psycopg2/#psycopg2/' /requirements.txt && \
|
||||
pip3 install -r /requirements.txt && rm /requirements.txt && \
|
||||
adduser -D django
|
||||
USER django
|
||||
pip3 install -r /requirements.txt && rm /requirements.txt
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
django==3.0
|
||||
psycopg2==2.8.4
|
||||
django==2.0.1
|
||||
psycopg2==2.7.3.2
|
||||
|
|
|
|||
Loading…
Reference in New Issue