This commit is contained in:
parent
f27e8d18c2
commit
1da682e9ba
6 changed files with 15 additions and 13 deletions
|
@ -2,9 +2,12 @@
|
|||
ContainerName=gisaf-backend-initdb
|
||||
Image=code.philo.ydns.eu/philorg/gisaf-backend:latest
|
||||
Pod=gisaf.pod
|
||||
#Network=gisaf # Defined in the pod
|
||||
Environment=GISAF__DB__HOST=gisaf-database
|
||||
Exec=gisaf create-db
|
||||
|
||||
[Unit]
|
||||
Requires=gisaf-database.service
|
||||
After=gisaf-database.service
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
|
@ -2,16 +2,15 @@
|
|||
ContainerName=gisaf-backend
|
||||
Image=code.philo.ydns.eu/philorg/gisaf-backend:latest
|
||||
Pod=gisaf.pod
|
||||
#Network=gisaf # Defined in the pod
|
||||
Environment=GISAF__DB__HOST=gisaf-database
|
||||
Environment=GISAF__GISAF_LIVE__REDIS=redis://gisaf-redis
|
||||
|
||||
[Service]
|
||||
#Wants=gisaf-backend-initdb.service
|
||||
#After=gisaf-backend-initdb.service
|
||||
Restart=Always
|
||||
#ExecStartPre=podman run --name=gisaf-backend-initdb -e GISAF__DB__PORT=35432 -e GISAF__DB__HOST=gisaf-database --rm code.philo.ydns.eu/philorg/gisaf-backend gisaf create-db
|
||||
Restart=always
|
||||
|
||||
[Unit]
|
||||
Wants=gisaf-backend-initdb.service
|
||||
After=gisaf-backend-initdb.service
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
ContainerName=gisaf-database
|
||||
Image=code.philo.ydns.eu/philorg/gisaf-database:latest
|
||||
Pod=gisaf.pod
|
||||
#Network=gisaf # Defined in the pod
|
||||
Volume=gisaf-pgdata:/var/lib/postgresql/data
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
|
|
|
@ -5,10 +5,11 @@ Pod=gisaf.pod
|
|||
#Network=gisaf # Defined in the pod
|
||||
|
||||
[Service]
|
||||
Restart=Always
|
||||
Restart=always
|
||||
|
||||
[Unit]
|
||||
Wants=gisaf-backend.service
|
||||
After=gisaf-backend.service
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
[Network]
|
||||
NetworkName=gisaf
|
||||
|
||||
Label=app=gisaf
|
||||
|
|
|
@ -5,9 +5,10 @@ PublishPort=8899:80
|
|||
PublishPort=35432:4532
|
||||
#PublishPort=36379:4532
|
||||
|
||||
[Service]
|
||||
Wants=gisaf-network.service
|
||||
[Unit]
|
||||
Requires=gisaf-network.service
|
||||
After=gisaf-network.service
|
||||
After=podman-user-wait-network-online.service
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue