File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,16 @@ def start
16
16
run ( "docker network create notes-bridge-docker-network" , capture : true )
17
17
run ( "docker volume create notes-data-volume" , capture : true )
18
18
19
+ # --publish 5432:5432 \
20
+
19
21
run (
20
22
<<~CMD . gsub ( /\s +/ , " " ) . strip ,
21
23
docker run --rm --detach --name notes-db \
22
- --publish 5432:5432 \
23
24
--env POSTGRES_HOST_AUTH_METHOD=trust \
24
25
--network notes-bridge-docker-network \
25
26
--env PGDATA=/var/lib/postgresql/data/pgdata \
26
27
-v notes-data-volume:/var/lib/postgresql/data:delegated \
27
- --detach postgres:14.10
28
+ postgres:14.10
28
29
CMD
29
30
capture : true
30
31
)
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def self.exit_on_failure?
15
15
desc "build" , "Builds the app"
16
16
def build
17
17
say "Building the app"
18
- run ( "docker build -t notes ." , capture : true )
18
+ run ( "docker build -t workanywhere/ notes:latest ." , capture : true )
19
19
20
20
run ( "docker network create notes-bridge-docker-network" , capture : true )
21
21
end
@@ -26,7 +26,7 @@ def start
26
26
run (
27
27
<<~CMD . gsub ( /\s +/ , " " ) . strip ,
28
28
docker run --rm --name notes-web \
29
- --publish 3000 :3000 \
29
+ --publish 4005 :3000 \
30
30
--env POSTGRES_HOST_AUTH_METHOD=trust \
31
31
--env DATABASE_URL=postgres://postgres@notes-db:5432/notes_development \
32
32
--env RAILS_ENV=development \
@@ -39,7 +39,7 @@ def start
39
39
-v #{ Dir . pwd } /config:/rails/config:delegated \
40
40
-v #{ Dir . pwd } /lib:/rails/lib:delegated \
41
41
-v #{ Dir . pwd } /db:/rails/db:delegated
42
- notes:latest
42
+ workanywhere/ notes:latest
43
43
CMD
44
44
capture : false
45
45
)
You can’t perform that action at this time.
0 commit comments