Skip to content

Commit

Permalink
Close #54
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Sep 25, 2024
1 parent ad482d9 commit 343e134
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions templates/compose.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ services:
condition: service_healthy
volumes:
{{ volume_ro('nextmn/routes-to-nei.sh', '/usr/local/bin/routes-to-nei.sh') }}
- r0_db_volume:/var/run/postgresql/
environment:
LOG_LEVEL: "debug"
NEI_ADDR: "{{ ipv6_subnet('r1') }} {{ ipv6_subnet('rr') }} {{ ipv6_subnet('srgw0') }} {{ ipv4('s', 'service') }}"
Expand All @@ -824,6 +825,7 @@ services:
behavior: "H.Encaps"
POSTGRES_PASSWORD_FILE: /run/secrets/r0_db_password
POSTGRES_HOST: "r0-db.nextmndb"
POSTGRES_UNIX_SOCKET_PATH: "/var/run/postgresql/"
secrets:
- r0_db_password
networks:
Expand All @@ -847,6 +849,8 @@ services:
- r0_db_password
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/r0_db_password
volumes:
- r0_db_volume:/var/run/postgresql/
networks:
nextmndb:

Expand All @@ -858,6 +862,7 @@ services:
condition: service_healthy
volumes:
{{ volume_ro('nextmn/routes-to-nei.sh', '/usr/local/bin/routes-to-nei.sh') }}
- r1_db_volume:/var/run/postgresql/
environment:
LOG_LEVEL: "debug"
NEI_ADDR: "{{ ipv6_subnet('r0') }} {{ ipv6_subnet('rr') }} {{ ipv6_subnet('srgw0') }} {{ ipv4('s', 'service') }}"
Expand All @@ -883,6 +888,7 @@ services:
behavior: "H.Encaps"
POSTGRES_PASSWORD_FILE: /run/secrets/r1_db_password
POSTGRES_HOST: "r1-db.nextmndb"
POSTGRES_UNIX_SOCKET_PATH: "/var/run/postgresql"
secrets:
- r1_db_password
networks:
Expand All @@ -906,6 +912,8 @@ services:
- r1_db_password
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/r1_db_password
volumes:
- r1_db_volume:/var/run/postgresql/
networks:
nextmndb:

Expand All @@ -917,6 +925,7 @@ services:
condition: service_healthy
volumes:
{{ volume_ro('nextmn/routes-to-nei.sh', '/usr/local/bin/routes-to-nei.sh') }}
- rr_db_volume:/var/run/postgresql/
environment:
LOG_LEVEL: "debug"
NEI_ADDR: "{{ ipv6_subnet('r0') }} {{ ipv6_subnet('r1') }} {{ ipv6_subnet('srgw0') }}"
Expand All @@ -935,6 +944,7 @@ services:
behavior: "End"
POSTGRES_PASSWORD_FILE: /run/secrets/rr_db_password
POSTGRES_HOST: "rr-db.nextmndb"
POSTGRES_UNIX_SOCKET_PATH: "/var/run/postgresql/"
secrets:
- rr_db_password
networks:
Expand All @@ -956,6 +966,8 @@ services:
- rr_db_password
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/rr_db_password
volumes:
- rr_db_volume:/var/run/postgresql/
networks:
nextmndb:

Expand All @@ -967,6 +979,7 @@ services:
condition: service_healthy
volumes:
{{ volume_ro('nextmn/routes-to-nei.sh', '/usr/local/bin/routes-to-nei.sh') }}
- srgw0_db_volume:/var/run/postgresql/
environment:
LOG_LEVEL: "debug"
NEI_ADDR: "{{ ipv6_subnet('r0') }} {{ ipv6_subnet('r1') }} {{ ipv6_subnet('rr') }}"
Expand All @@ -991,6 +1004,7 @@ services:
behavior: "End.M.GTP4.E"
POSTGRES_PASSWORD_FILE: /run/secrets/srgw0_db_password
POSTGRES_HOST: "srgw0-db.nextmndb"
POSTGRES_UNIX_SOCKET_PATH: "/var/run/postgresql/"
secrets:
- srgw0_db_password
networks:
Expand All @@ -1014,6 +1028,8 @@ services:
- srgw0_db_password
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/srgw0_db_password
volumes:
- srgw0_db_volume:/var/run/postgresql/
networks:
nextmndb:

Expand Down Expand Up @@ -1218,6 +1234,12 @@ secrets:
file: "{{ secret('srgw0_db_password.txt') }}"
#~ endif

volumes:
rr_db_volume:
r0_db_volume:
r1_db_volume:
srgw0_db_volume:

networks:
ran:
name: ran
Expand Down

0 comments on commit 343e134

Please sign in to comment.