File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1+ # Customize configuration from docker-compose.yml and prod.yml to run the
2+ # application with local data.
3+ #
4+ # In order to get the effective configuration, run
5+ # docker compose -f docker-compose.yml -f prod.yml -f local-data.yml config
6+ #
7+
8+ services :
9+ web :
10+ volumes :
11+ # to use a WAR file from filesystem and avoid to build image every time
12+ - ../../target/mystamps.war:/data/mystamps/mystamps.war:ro
13+ db :
14+ volumes :
15+ - ./mysql_backup_mystamps.sql.gz:/docker-entrypoint-initdb.d/dump.sql.gz:ro
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ services:
1717 - SERVER_SERVLET_SESSION_COOKIE_SECURE=false
1818 volumes :
1919 - ./application-prod.properties:/data/mystamps/application-prod.properties:ro
20- # to use a WAR file from filesystem and avoid to build an image every time
21- # - ../../target/mystamps.war:/data/mystamps/mystamps.war:ro
2220 networks :
2321 - internal-network
2422 depends_on :
@@ -44,9 +42,6 @@ services:
4442 - MYSQL_DATABASE=mystamps
4543 ports :
4644 - ' 3306:3306'
47- # only for testing locally
48- # volumes:
49- # - ./mysql_backup_mystamps.sql.gz:/docker-entrypoint-initdb.d/dump.sql.gz:ro
5045 networks :
5146 - internal-network
5247
You can’t perform that action at this time.
0 commit comments