Skip to content

Commit

Permalink
Depends using full syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Jun 26, 2024
1 parent 912bfdd commit 4e94592
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions templates/compose.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ services:

{{ container_s(name='gnb1', image='louisroyer/ueransim-gnb', ipv6=True, restart='always', iface_tun=True, cap_net_admin=True, debug=True) }}
depends_on:
- amf
amf:
condition: service_started
environment:
NCI: 000000001
RLS_IP: "{{ ipv6('gnb1', 'ran') }}"
Expand Down Expand Up @@ -76,7 +77,8 @@ services:

{{ container_s(name='gnb2', image='louisroyer/ueransim-gnb', ipv6=True, restart='always', iface_tun=True, cap_net_admin=True, debug=True) }}
depends_on:
- amf
amf:
condition: service_started
environment:
NCI: 000000002
RLS_IP: "{{ ipv6('gnb2', 'ran') }}"
Expand Down Expand Up @@ -105,7 +107,8 @@ services:

{{ container_s(name='amf', image='louisroyer/dev-free5gc-amf', restart='always') }}
depends_on:
- nrf # required to being able to deregister propertly
nrf: # required to being able to deregister propertly
condition: service_started
environment:
N2: "{{ ipv4('amf', 'control') }}"
SBI_REGISTER_IP: "amf.sbi"
Expand All @@ -132,7 +135,8 @@ services:

{{ container_s(name='nrf', image='louisroyer/dev-free5gc-nrf', restart='always') }}
depends_on:
- mongodb # required to being able to deregister propertly
mongodb: # required to being able to deregister propertly
condition: service_started
environment:
MONGO_HOST: "mongodb.db"
SBI_REGISTER_IP: "nrf.sbi"
Expand All @@ -147,7 +151,8 @@ services:

{{ container_s(name='ausf', image='louisroyer/dev-free5gc-ausf', restart='always') }}
depends_on:
- nrf # required to being able to deregister propertly
nrf: # required to being able to deregister propertly
condition: service_started
environment:
SBI_REGISTER_IP: "ausf.sbi"
SBI_BINDING_IP: "{{ ipv4('ausf', 'sbi') }}"
Expand All @@ -161,7 +166,8 @@ services:

{{ container_s(name='udm', image='louisroyer/dev-free5gc-udm', restart='always') }}
depends_on:
- nrf # required to being able to deregister propertly
nrf: # required to being able to deregister propertly
condition: service_started
environment:
SBI_REGISTER_IP: "udm.sbi"
SBI_BINDING_IP: "{{ ipv4('udm', 'sbi') }}"
Expand All @@ -173,7 +179,8 @@ services:

{{ container_s(name='udr', image='louisroyer/dev-free5gc-udr', restart='always') }}
depends_on:
- nrf # required to being able to deregister propertly
nrf: # required to being able to deregister propertly
condition: service_started
environment:
MONGO_HOST: "mongodb.db"
SBI_REGISTER_IP: "udr.sbi"
Expand All @@ -187,7 +194,8 @@ services:

{{ container_s(name='pcf', image='louisroyer/dev-free5gc-pcf', restart='always') }}
depends_on:
- nrf # required to being able to deregister propertly
nrf: # required to being able to deregister propertly
condition: service_started
environment:
MONGO_HOST: "mongodb.db"
SBI_REGISTER_IP: "pcf.sbi"
Expand All @@ -201,7 +209,8 @@ services:

{{ container_s(name='smf', image='louisroyer/dev-free5gc-smf', restart='always') }}
depends_on:
- nrf # required to being able to deregister propertly
nrf: # required to being able to deregister propertly
condition: service_started
environment:
SBI_REGISTER_IP: "smf.sbi"
SBI_BINDING_IP: "{{ ipv4('smf', 'sbi') }}"
Expand Down Expand Up @@ -262,7 +271,8 @@ services:

{{ container_s(name='populate', image='louisroyer/free5gc-populate', restart='no') }}
depends_on:
- mongodb # required to being able to deregister propertly
mongodb: # required to being able to deregister propertly
condition: service_started
environment:
MONGO_HOST: "mongodb.db"
SLICES: |-
Expand All @@ -278,7 +288,8 @@ services:

{{ container_s(name='nssf', image='louisroyer/dev-free5gc-nssf', restart='always') }}
depends_on:
- nrf # required to being able to deregister propertly
nrf: # required to being able to deregister propertly
condition: service_started
environment:
SBI_REGISTER_IP: "nssf.sbi"
SBI_BINDING_IP: "{{ ipv4('nssf', 'sbi') }}"
Expand Down

0 comments on commit 4e94592

Please sign in to comment.