We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 600dede commit f733ac0Copy full SHA for f733ac0
fig.yml
@@ -23,4 +23,4 @@ app:
23
- dbinit
24
- db:mysql
25
ports:
26
- - "8080"
+ - "8080:8080"
readme.md
@@ -15,4 +15,7 @@ Then run `fig ps` to find the app port.
15
* `docker build -t javatest .`
16
* `docker run -ti -P --rm --link mysql:mysql javatest`
17
18
+## Update Procedure
19
+
20
+* `docker run --link=dockersamplejavamysqltomcat_db_1:mysql --entrypoint="mysql" -v $(pwd):/host mysql:5.6.21 -u java --password=java --host=mysql javatest < update.sql`
21
You should be able to access the app on http://<docker-host-ip>:<app-port>/dbtest
update.sql
@@ -0,0 +1 @@
1
+insert into testdata values(null, 'world', 7890);
0 commit comments