Browse Source

Add project migrations

master
alfred 1 month ago
parent
commit
9f077f37f2
2 changed files with 3 additions and 3 deletions
  1. 0
    0
      apps/project/migrations/__init__.py
  2. 3
    3
      docker/docker-compose.yml

+ 0
- 0
apps/project/migrations/__init__.py View File


+ 3
- 3
docker/docker-compose.yml View File

@@ -11,15 +11,15 @@ services:
11 11
     depends_on:
12 12
       - postgres12
13 13
     environment:
14
-      - DB_HOST=postgres
14
+      - DB_HOST=postgres12
15 15
     volumes:
16 16
       - ..:/srv
17 17
     command: python manage.py runserver 0.0.0.0:8000
18 18
   postgres12:
19 19
     container_name: postgres12
20
-    image: postgres:10.6
20
+    image: postgres:12
21 21
     volumes:
22
-      - $PG_DATAPATH:/var/lib/postgresql/data/
22
+      - /srv/data/pg12:/var/lib/postgresql/data/
23 23
     environment:
24 24
       - POSTGRES_PASSWORD=mysecretpassword
25 25
     ports:

Loading…
Cancel
Save