File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ services:
10
10
- postgres:/var/lib/postgresql/data
11
11
environment :
12
12
POSTGRES_PASSWORD : thispasswordisverysecure
13
+ POSTGRES_DB : paws
14
+
15
+
16
+
13
17
14
18
server :
15
19
container_name : paws-compose-server
@@ -35,8 +39,27 @@ services:
35
39
- CHOKIDAR_USEPOLLING=true
36
40
stdin_open : true
37
41
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
38
58
# using named volumes fixs a windows docker bug relating to container permissions
39
59
# https://stackoverflow.com/questions/49148754/docker-container-shuts-down-giving-data-directory-has-wrong-ownership-error-wh
40
60
volumes :
41
61
postgres :
42
- src_archive:
62
+ src_archive :
63
+
64
+
65
+
Original file line number Diff line number Diff line change @@ -39,4 +39,5 @@ WORKDIR /app
39
39
40
40
RUN set FLASK_APP=server/app.py
41
41
RUN export FLASK_APP
42
- CMD alembic upgrade head ; python -m flask run --host=0.0.0.0
42
+ # CMD alembic upgrade head ; python -m flask run --host=0.0.0.0
43
+ CMD /app/start_server.sh
Original file line number Diff line number Diff line change
1
+ echo " Sleeping for 10s..."
2
+ sleep 10;
3
+ echo " Running Alembic" ;
4
+ alembic upgrade head;
5
+ echo " Starting Flask"
6
+ python -m flask run --host=0.0.0.0
You can’t perform that action at this time.
0 commit comments