Skip to content

Commit 029d4fa

Browse files
committed
chore: introduce local-data.yml override file for docker compose
1 parent 1694702 commit 029d4fa

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

infra/docker/local-data.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

infra/docker/prod.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)