File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,25 @@ services:
82
82
healthcheck :
83
83
test : " PGPASSWORD=${POSTGRES_PASSWORD} pg_isready -h 127.0.0.1 -U ${POSTGRES_USER} -d ${POSTGRES_DB}"
84
84
85
+ migrate_database :
86
+ image : postgis/postgis:15-3.5
87
+ restart : unless-stopped
88
+ environment :
89
+ POSTGRES_USER : ${POSTGRES_USER:-postgres}
90
+ POSTGRES_PASSWORD : ${POSTGRES_PASSWORD:-changeme}
91
+ POSTGRES_DB : ${POSTGRES_DB:-app}
92
+ PGDATA : /var/lib/postgresql/data/pgdata
93
+ volumes :
94
+ - migrate_database_data:/var/lib/postgresql/data
95
+ ports :
96
+ - " 5432"
97
+ healthcheck :
98
+ interval : 10s
99
+ timeout : 5s
100
+ retries : 5
101
+ start_period : 30s
102
+ test : " PGPASSWORD=${POSTGRES_PASSWORD} pg_isready -h 127.0.0.1 -U ${POSTGRES_USER} -d ${POSTGRES_DB}"
103
+
85
104
# crontab:
86
105
# image: rancher/container-crontab:v0.5.0
87
106
# restart: '${DOCKER_RESTART_POLICY:-always}'
@@ -155,3 +174,4 @@ volumes:
155
174
assets-files :
156
175
sessions-files :
157
176
doctrine-files :
177
+ migrate_database_data :
You can’t perform that action at this time.
0 commit comments