Skip to content

Commit 965842a

Browse files
author
Mario Colombo
authored
Merge pull request #19 from jpVm5jYYRE1VIKL/patch-4
Update docker-compose.yml
2 parents ba91d6f + 2da9805 commit 965842a

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

docker-compose.yml

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
version: "2.4"
1+
version: "3"
2+
23
services:
34
web:
45
# the application's web service (container) will use an image based on our Dockerfile
5-
build: "."
6+
build: .
67
# map the internal port 80 to port 8000 on the host
78
ports:
89
- "8000:80"
@@ -13,19 +14,27 @@ services:
1314
# the default command to run whenever the container is launched
1415
command: python manage.py runserver 0.0.0.0:80
1516
# the URL 'postgres' or 'mysql' will point to the application's db service
16-
links:
17-
- "database_default"
17+
networks:
18+
- djangocmsnet
19+
1820
env_file: .env-local
1921

2022
database_default:
2123
# Select one of the following db configurations for the database
2224
image: postgres:9.6-alpine
2325
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
2527
environment:
2628
POSTGRES_DB: "db"
2729
POSTGRES_PASSWORD: "password"
2830
POSTGRES_HOST_AUTH_METHOD: "trust"
2931
SERVICE_MANAGER: "fsm-postgres"
32+
33+
networks:
34+
- djangocmsnet
35+
3036
volumes:
3137
- ".:/app:rw"
38+
39+
networks:
40+
djangocmsnet:

0 commit comments

Comments
 (0)