Assign the OHLC data updater its own network and static ip

This commit is contained in:
moshferatu 2024-01-09 12:54:33 -08:00
parent cda8d29490
commit c883f27e0c

View File

@ -3,6 +3,9 @@ services:
update_ohlc_data: update_ohlc_data:
image: <gitea url>/moshferatu/update-ohlc-data:latest image: <gitea url>/moshferatu/update-ohlc-data:latest
container_name: update-ohlc-data container_name: update-ohlc-data
networks:
update-ohlc-data:
ipv4_address: <static ip>
environment: environment:
- DATABASE_HOST= - DATABASE_HOST=
- DATABASE_PORT= - DATABASE_PORT=
@ -12,3 +15,9 @@ services:
- IQFEED_HOST= - IQFEED_HOST=
- IQFEED_PORT= - IQFEED_PORT=
restart: unless-stopped restart: unless-stopped
networks:
update-ohlc-data:
name: update-ohlc-data
ipam:
config:
- subnet: <subnet>