File tree 1 file changed +14
-5
lines changed
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
- version : " 2.4"
1
+ version : " 3"
2
+
2
3
services :
3
4
web :
4
5
# the application's web service (container) will use an image based on our Dockerfile
5
- build : " . "
6
+ build : .
6
7
# map the internal port 80 to port 8000 on the host
7
8
ports :
8
9
- " 8000:80"
@@ -13,19 +14,27 @@ services:
13
14
# the default command to run whenever the container is launched
14
15
command : python manage.py runserver 0.0.0.0:80
15
16
# the URL 'postgres' or 'mysql' will point to the application's db service
16
- links :
17
- - " database_default"
17
+ networks :
18
+ - djangocmsnet
19
+
18
20
env_file : .env-local
19
21
20
22
database_default :
21
23
# Select one of the following db configurations for the database
22
24
image : postgres:9.6-alpine
23
25
ports :
24
- - " 5432:5432" # allow your local dev env to connect to the db
26
+ - " 5432:5432/tcp " # allow your local dev env to connect to the db
25
27
environment :
26
28
POSTGRES_DB : " db"
27
29
POSTGRES_PASSWORD : " password"
28
30
POSTGRES_HOST_AUTH_METHOD : " trust"
29
31
SERVICE_MANAGER : " fsm-postgres"
32
+
33
+ networks :
34
+ - djangocmsnet
35
+
30
36
volumes :
31
37
- " .:/app:rw"
38
+
39
+ networks :
40
+ djangocmsnet :
You can’t perform that action at this time.
0 commit comments